/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (LUXURY & ELEGANT THEME)
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-obsidian: #060608;
    --color-bg-velvet: #0e0e12;
    --color-bg-card: rgba(18, 18, 24, 0.65);
    --color-text-primary: #f0f0f5;
    --color-text-secondary: #a0a0b0;
    --color-gold-pure: #d4af37;
    --color-gold-dark: #b89028;
    --color-gold-light: #f3e5ab;
    --color-bronze: #8c7853;
    --color-border-gold: rgba(212, 175, 55, 0.2);
    --color-border-gold-hover: rgba(212, 175, 55, 0.45);
    --color-glass-bg: rgba(14, 14, 18, 0.7);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #8c7853 100%);
    --gradient-dark-gold: linear-gradient(135deg, #b89028 0%, #8c7853 50%, #4a3f2b 100%);
    --gradient-text-gold: linear-gradient(90deg, #f3e5ab, #d4af37, #b89028, #f3e5ab);
    --gradient-obsidian: linear-gradient(180deg, var(--color-bg-obsidian) 0%, var(--color-bg-velvet) 100%);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --border-radius-lg: 16px;
    --border-radius-md: 8px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s ease-out;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold-pure) var(--color-bg-obsidian);
}

body {
    background-color: var(--color-bg-obsidian);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-obsidian);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-pure);
}

/* ==========================================================================
   CUSTOM CURSOR (ELEGANT MICRO-ANIMATION)
   ========================================================================== */
#custom-cursor {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-gold-pure);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

#custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-pure);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Hide cursor on touchscreen devices */
@media (hover: none) and (pointer: coarse) {
    #custom-cursor, #custom-cursor-dot {
        display: none;
    }
}

/* ==========================================================================
   CANVAS BACKDROP
   ========================================================================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: auto; /* Allow dragging & clicking in the scene */
}

/* ==========================================================================
   LAYOUT STRUCTURE
   ========================================================================== */
#app {
    position: relative;
    z-index: 10;
    width: 100%;
}

.section {
    min-height: 100vh;
    padding: 120px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(6, 6, 8, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

#main-header.scrolled {
    background: var(--color-glass-bg);
    border-bottom: 1px solid var(--color-border-gold);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.header-container {
    width: 84%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.6));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-gold);
    transition: var(--transition-smooth);
}

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

.contact-btn {
    border: 1px solid var(--color-border-gold);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(212, 175, 55, 0.03);
}

.contact-btn:hover {
    border-color: var(--color-gold-pure);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.contact-btn::after {
    display: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-bg-obsidian);
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--color-gold-pure);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
}

.btn-gold {
    background: transparent;
    color: var(--color-gold-pure);
    border: 1px solid var(--color-gold-pure);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.05);
}

.btn-gold:hover {
    background: var(--gradient-gold);
    color: var(--color-bg-obsidian);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
    align-items: flex-start;
}

.hero-content {
    max-width: 680px;
    position: relative;
    z-index: 10;
}

.gold-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-gold-pure);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.2rem, 8vw, 5.8rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 10%, #d4af37 60%, #8c7853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.divider {
    height: 1px;
    margin-bottom: 32px;
}

.gold-gradient-line {
    background: linear-gradient(90deg, var(--color-gold-pure) 0%, rgba(212, 175, 55, 0) 100%);
    width: 150px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Server Status Badge */
.server-badge {
    position: absolute;
    bottom: 120px;
    right: 8%;
    background: var(--color-glass-bg);
    border: 1px solid var(--color-border-gold);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Scroll indicator mouse */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 1px solid var(--color-text-secondary);
    border-radius: 10px;
    position: relative;
    display: block;
}

.mouse-icon .wheel {
    width: 3px;
    height: 6px;
    background-color: var(--color-gold-pure);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% { top: 6px; opacity: 1; }
    50% { top: 16px; opacity: 0; }
    100% { top: 6px; opacity: 1; }
}

/* ==========================================================================
   SHOWROOM SECTION
   ========================================================================== */
#showroom {
    align-items: flex-start;
    /* Leave the right side open for the 3D gallery rendering */
}

.showroom-header {
    max-width: 40%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.section-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Filter buttons */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    padding: 10px 22px;
    border-radius: 25px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--color-gold-pure);
    color: var(--color-text-primary);
    background: rgba(212, 175, 55, 0.03);
}

.filter-btn.active {
    background: var(--gradient-gold);
    color: var(--color-bg-obsidian);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.interactive-helper {
    font-size: 0.85rem;
    color: var(--color-gold-pure);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    animation: pulse-opacity 2s infinite ease-in-out;
}

@keyframes pulse-opacity {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* ==========================================================================
   GAME STORE CTA SECTION
   ========================================================================== */
#store {
    align-items: center;
    justify-content: center;
}

.store-card-wrapper {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.store-card {
    background: radial-gradient(circle at top left, rgba(20, 20, 28, 0.8) 0%, rgba(8, 8, 12, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--border-radius-lg);
    padding: 60px 8%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.store-card:hover {
    border-color: var(--color-border-gold-hover);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.08), 0 15px 50px rgba(0, 0, 0, 0.8);
}

.store-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.store-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--color-border-gold);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-gold-pure);
    margin-bottom: 24px;
}

.store-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text-primary);
}

.store-desc {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#main-footer {
    background: #050507;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 60px 8% 40px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 320px;
}

.logo-img-footer {
    height: 32px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-link {
    color: var(--color-gold-pure);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-snappy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-link:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   LIGHTBOX / MEDIA INTERACTIVE VIEW (GLASSMORPHIC MODAL)
   ========================================================================== */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.lightbox-content-wrapper {
    position: relative;
    z-index: 10010;
    width: 90%;
    max-width: 1000px;
    background: rgba(18, 18, 24, 0.7);
    border: 1px solid var(--color-border-gold-hover);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    padding: 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#lightbox.active .lightbox-content-wrapper {
    transform: scale(1);
}

#lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    background: var(--color-bg-velvet);
    border: 1px solid var(--color-gold-pure);
    color: var(--color-gold-pure);
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

#lightbox-close:hover {
    background: var(--gradient-gold);
    color: var(--color-bg-obsidian);
    transform: rotate(90deg);
}

.lightbox-media-container {
    width: 100%;
    height: 500px;
    background: #020202;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.lightbox-media-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
}

.lightbox-category {
    margin-bottom: 12px;
}

#lightbox-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--color-text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

#lightbox-desc {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* ==========================================================================
   UTILITY & RESPONSIVE LAYOUTS
   ========================================================================== */
.hidden {
    display: none !important;
}

/* GSAP Scroll Reveal Start State */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .section {
        padding: 100px 6%;
    }
    
    .header-container {
        width: 90%;
    }
    
    .showroom-header {
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    /* Stack components */
    .section {
        padding: 80px 6%;
        min-height: auto;
    }
    
    #hero {
        padding-top: 140px;
        min-height: 100vh;
    }
    
    .nav-links {
        display: none; /* Can be simplified further or hidden for mobile minimalism */
    }
    
    .showroom-header {
        max-width: 100%;
        margin-bottom: 300px; /* Leave space for the 3D gallery, which sits on mobile below or background */
    }
    
    .store-card {
        padding: 40px 6%;
    }
    
    .lightbox-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .lightbox-media-container {
        height: 300px;
    }
    
    #lightbox-close {
        top: 15px;
        right: 15px;
    }
}

/* ==========================================================================
   PORTFOLIO SECTION SPECIFIC STYLES
   ========================================================================== */
#portfolios {
    align-items: flex-start;
    justify-content: flex-start;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
}

.portfolio-header {
    width: 100%;
    margin-bottom: 50px;
}

.portfolio-header .section-desc {
    max-width: 800px;
    margin-bottom: 30px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.portfolio-filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-text-secondary);
    padding: 10px 22px;
    border-radius: 25px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.portfolio-filter-btn:hover {
    border-color: var(--color-gold-pure);
    color: var(--color-text-primary);
    background: rgba(212, 175, 55, 0.03);
}

.portfolio-filter-btn.active {
    background: var(--gradient-gold);
    color: var(--color-bg-obsidian);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

/* Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Card Styling */
.portfolio-item-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-gold);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-item-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-gold-hover);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.08), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #0d0d12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.portfolio-card-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 70%, rgba(6, 6, 8, 0.4) 100%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.portfolio-item-card:hover .portfolio-card-img-wrapper::after {
    background: linear-gradient(180deg, transparent 90%, rgba(6, 6, 8, 0.2) 100%);
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition-smooth);
}

.portfolio-item-card:hover .portfolio-card-img {
    transform: scale(1.05);
}

.portfolio-card-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.portfolio-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(6, 6, 8, 0.75);
    border: 1px solid var(--color-border-gold);
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-gold-pure);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.portfolio-card-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--color-text-primary);
    transition: var(--transition-snappy);
}

.portfolio-item-card:hover .portfolio-card-title {
    color: var(--color-gold-pure);
}

.portfolio-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.portfolio-card-tags span {
    font-size: 0.75rem;
    color: var(--color-gold-light);
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.portfolio-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold-pure);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-snappy);
    margin-top: auto;
    width: fit-content;
}

.portfolio-card-link:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.portfolio-card-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease-out;
}

.portfolio-card-link:hover i {
    transform: translate(2px, -2px);
}

/* Responsive adjustments for portfolio */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #portfolios {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-header {
        margin-bottom: 30px;
    }
}
