:root {
    /* ✳ Base Colors - Bold & Vibrant Dark Theme */
    --dark-bg-color: #0d0d1f;
    /* Extra deep navy for body */
    --primary-cta: #e94560;
    /* Vivid Neon Pink/Red for actions */
    --cta-hover: #c22941;
    /* Darkened tone for hover state */
    --accent-blue: #182747;
    /* Navy-Blue with depth */
    --accent-purple: #6C4AB6;
    /* Rich royal purple */
    --accent-cyan: #00FFF5;
    /* Glowing cyan for neon-like accents */
    --accent-gold: #FFD369;
    /* Futuristic gold for highlights */

    /* ✍ Text Colors */
    --text-light: #e5e7eb;
    /* Soft white */
    --text-muted: #94a3b8;
    /* Cool muted grey-blue */

    /* 🃏 Card & Surface */
    --card-bg-dark: rgba(255, 255, 255, 0.05);
    /* Translucent for depth */
    --card-border-dark: rgba(255, 255, 255, 0.12);
    /* Subtle border */
    --card-hover-glow: rgba(0, 255, 245, 0.1);
    /* Cyan card glow on hover */

    /* 🧱 Shadows */
    --shadow-dark-light: rgba(0, 0, 0, 0.3);
    --shadow-dark-medium: rgba(0, 0, 0, 0.6);
    --shadow-dark-heavy: rgba(0, 0, 0, 0.8);

    /* 🟢 Utility Colors */
    --success-color: #00d181;
    /* Bright Emerald */
    --error-color: #ff4d4f;
    /* Sharp danger red */
    --warning-color: #facc15;
    /* Yellow/Gold alert */

    /* ✨ Effects */
    --glow-color: rgba(233, 69, 96, 0.5);
    /* CTA glow */
    --cyan-glow: rgba(0, 255, 245, 0.4);
    /* Accent glow */
    --neon-ring: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);

    /* ⚙ General Styles */
    --transition-speed: 0.3s ease;
    --border-radius: 10px;

    /* 🔝 Header */
    --header-transparent-link-color: var(--text-light);
    --header-logo-initial: var(--accent-gold);
    --header-logo-accent: var(--primary-cta);
    --header-scrolled-bg: var(--accent-blue);
    --header-scrolled-link-color: var(--text-light);
    --header-dropdown-bg: var(--accent-blue);
    --header-dropdown-text: var(--text-light);
    --header-dropdown-hover: var(--primary-cta);
    --header-dropdown-border: var(--card-border-dark);
    --header-mobile-menu-bg: var(--accent-blue);

    /* 🦸 Hero Section */
    --hero-section-bg: var(--dark-bg-color);
    --hero-container-bg: var(--card-bg-dark);
    --hero-text-color: var(--text-light);
    --hero-heading-color: var(--accent-gold);
    --hero-accent-color: var(--accent-cyan);
    --hero-button-bg: var(--primary-cta);
    --hero-button-hover-bg: var(--cta-hover);
    --hero-countdown-bg: var(--accent-purple);
    --hero-countdown-text: #ffffff;
    --hero-discount-badge-bg: var(--success-color);
    --hero-discount-badge-text: #000000;
    --hero-guarantee-text: var(--text-muted);
    --hero-guarantee-icon: var(--accent-cyan);
    --hero-check-mark: var(--success-color);
    --hero-image-bg-shape: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-cyan) 100%);

    /* 🦶 Footer */
    --footer-bg: var(--accent-blue);
    --footer-text: var(--text-light);
    --footer-link: var(--accent-cyan);
    --footer-link-hover: var(--primary-cta);
}

/* Animation keyframes for cards */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* General Body and Main Container Styles */
* {
    box-sizing: border-box;
    /* Added for better layout control */
}


.portfolio-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
}

/* Category Section Styles */
.category-section {
    margin-bottom: 3rem;
}

.category-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    /* Updated */
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Card Grid Layout */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Card Styles */
.card {
    background-color: var(--card-bg-dark);
    /* Updated */
    border-radius: var(--border-radius);
    /* Updated */
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow-dark-light);
    /* Updated */
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    /* Updated */

    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSlideUp 0.8s ease forwards;
}

/* Staggered animation delay */
.card:nth-child(1) {
    animation-delay: 0.2s;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
}

.card:nth-child(3) {
    animation-delay: 0.6s;
}

.card:nth-child(4) {
    animation-delay: 0.8s;
}

.card:nth-child(5) {
    animation-delay: 1.0s;
}

.card:nth-child(6) {
    animation-delay: 1.2s;
}

.card:nth-child(7) {
    animation-delay: 1.4s;
}

.card:nth-child(8) {
    animation-delay: 1.6s;
}

.card:nth-child(9) {
    animation-delay: 1.8s;
}

.card:nth-child(10) {
    animation-delay: 2.0s;
}

.card:nth-child(11) {
    animation-delay: 2.2s;
}

.card:nth-child(12) {
    animation-delay: 2.4s;
}

.card:nth-child(13) {
    animation-delay: 2.6s;
}

.card:nth-child(14) {
    animation-delay: 2.8s;
}

.card:nth-child(15) {
    animation-delay: 3.0s;
}

.card:nth-child(16) {
    animation-delay: 3.2s;
}

.card:nth-child(17) {
    animation-delay: 3.4s;
}

.card:nth-child(18) {
    animation-delay: 3.6s;
}

.card:nth-child(19) {
    animation-delay: 3.8s;
}

.card:nth-child(20) {
    animation-delay: 4.0s;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px var(--shadow-dark-medium);
    /* Updated */
}

/* Image Hover Effect */
.image-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.card-image.hover-image {
    opacity: 0;
}

.card:hover .card-image.main-image {
    opacity: 0;
}

.card:hover .card-image.hover-image {
    opacity: 1;
}

/* Card Content and Specs */
.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    /* Updated */
    margin-bottom: 1rem;
}

.card-specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.spec-item .label {
    font-weight: 600;
    color: var(--text-light);
    /* Updated */
    min-width: 120px;
}

.spec-item .value {
    color: var(--text-muted);
    /* Updated */
    line-height: 1.5;
}

/* Buttons */
.card-buttons {
    display: flex;
    gap: 1rem;
}

.card-buttons .btn {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-speed), transform 0.2s ease;
    /* Updated */
    color: var(--text-light);
    /* Updated */
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-dark-light);
    /* Updated */
}

.btn.site-preview {
    background-color: var(--success-color);
    /* Updated */
}

.btn.site-preview:hover {
    /* Using a darker shade of success color as no specific hover variable is provided for success */
    background-color: color-mix(in srgb, var(--success-color) 80%, black);
    transform: scale(1.05);
}

.btn.youtube-preview {
    background-color: var(--primary-cta);
    /* Updated */
}

.btn.youtube-preview:hover {
    background-color: var(--cta-hover);
    /* Updated */
    transform: scale(1.05);
}