/* Projects Page - Dedicated Styles */
/* This file contains ONLY the styles needed for the project.php page */
/* Inherits exact hero section styling from homepage.css - NO MODIFICATIONS */

/* =================================
   PROJECTS PAGE SPECIFIC STYLES
   ================================= */

/* ==================================
   PRESERVE EXISTING PROJECT STYLES
   ================================== */

/* Project icon styling from main style.css */
.project-icon {
    margin: 0 15px 15px 0;
    background-repeat: no-repeat;
    background-size: cover;
    float: left;
    width: 130px;
    height: 130px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Section right alignment */
.section-right {
    float: right;
}

/* Project-specific button styling */
.button-control-right {
    position: fixed;
    right: 0;
    bottom: 0;
    margin-bottom: 50px;
    margin-right: 50px;
    z-index: 10;
    background: #009245;
    background-position: center;
    background-size: 34px;
    background-repeat: no-repeat;
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    text-align: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-control-right:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 146, 69, 0.4);
}

/* Hide audio element */
#soundProject {
    display: none;
}

/* ===============================================
   REVOLUTIONARY 3D PROJECTS SECTION
   =============================================== */

/* 3D Projects Grid Container - FORCE 3 COLUMNS */
.ultra-modern-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    perspective: 2000px;
    transform-style: preserve-3d;
}

/* Individual 3D Project Card - MORE SQUARE SHAPE */
.ultra-3d-project-card {
    position: relative;
    min-height: 320px;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1500px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, box-shadow;
    
    /* 3D Floating Animation */
    animation: ultra3DFloat 8s ease-in-out infinite;
    
    /* Initial Transform */
    transform: rotateX(2deg) rotateY(1deg) translateZ(0);
    
    /* Advanced Shadow System */
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 3D Floating Animation */
@keyframes ultra3DFloat {
    0%, 100% {
        transform: rotateX(2deg) rotateY(1deg) translateY(0px) translateZ(0);
    }
    25% {
        transform: rotateX(1deg) rotateY(2deg) translateY(-8px) translateZ(10px);
    }
    50% {
        transform: rotateX(0deg) rotateY(0deg) translateY(-15px) translateZ(20px);
    }
    75% {
        transform: rotateX(-1deg) rotateY(-2deg) translateY(-8px) translateZ(10px);
    }
}

/* Enhanced Hover State */
.ultra-3d-project-card:hover {
    transform: rotateX(-5deg) rotateY(8deg) translateY(-25px) translateZ(50px) scale(1.02);
    
    /* Dramatic Shadow Enhancement */
    box-shadow: 
        0 60px 120px rgba(0, 0, 0, 0.25),
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 20px 40px var(--primary-color, #4CAF50),
        0 0 0 1px var(--primary-color, #4CAF50),
        0 0 80px var(--primary-color, #4CAF50),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    
    /* Pause floating animation during hover */
    animation-play-state: paused;
}

/* Card Inner Container - MORE SQUARE SHAPE */
.ultra-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    overflow: hidden;
    
    /* Glassmorphism Effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Inner Glow */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Background Layers System */
.ultra-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: 24px;
    overflow: hidden;
}

.ultra-bg-primary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
    opacity: 0.3;
    transition: all 0.6s ease;
}

.ultra-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, 
        #4CAF50 0%, 
        #388E3C 100%) !important;
    opacity: 0.1;
    transition: opacity 0.6s ease;
}

.ultra-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 70%,
        rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
}

/* Enhanced Background on Hover */
.ultra-3d-project-card:hover .ultra-bg-primary {
    filter: blur(0px);
    opacity: 0.5;
    transform: scale(1.1);
}

.ultra-3d-project-card:hover .ultra-bg-overlay {
    opacity: 0.2;
    background: linear-gradient(135deg, 
        #4CAF50 0%, 
        #388E3C 100%) !important;
}

/* Floating Particles Effect */
.ultra-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #4CAF50 !important;
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    left: 40%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    left: 60%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    left: 10%;
    animation-delay: 3s;
    animation-duration: 5s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) scale(0);
        opacity: 0;
    }
}

/* 3D Status Badge */
.ultra-status-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* 3D Transform */
    transform: translateZ(30px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.status-active {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white;
    box-shadow: 
        0 8px 16px rgba(76, 175, 80, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.status-coming-soon {
    background: linear-gradient(135deg, #FF9800 0%, #FFB74D 100%);
    color: white;
    box-shadow: 
        0 8px 16px rgba(255, 152, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Badge Hover Effect */
.ultra-3d-project-card:hover .ultra-status-badge {
    transform: translateZ(40px) scale(1.05);
}

/* 3D Project Icon with Hologram - SMALLER FOR SQUARE SHAPE */
.ultra-project-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 0.75rem;
    z-index: 5;
    transform: translateZ(20px);
}

.icon-hologram {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    transform-style: preserve-3d;
    
    /* 3D Icon Container */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

/* Hologram Ring Effect */
.hologram-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color, #4CAF50);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    
    /* Animated Border */
    background: conic-gradient(from 0deg, 
        transparent 0deg, 
        var(--primary-color, #4CAF50) 90deg, 
        transparent 180deg,
        var(--primary-color, #4CAF50) 270deg,
        transparent 360deg);
    
    animation: rotateRing 3s linear infinite;
}

@keyframes rotateRing {
    from { transform: scale(0.8) rotate(0deg); }
    to { transform: scale(0.8) rotate(360deg); }
}

/* Hologram Pulse */
.hologram-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--primary-color, #4CAF50);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: hologramPulse 2s ease-in-out infinite;
}

@keyframes hologramPulse {
    0%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px var(--primary-color, #4CAF50);
    }
}

/* Icon Hover Effects */
.ultra-3d-project-card:hover .icon-hologram {
    transform: translateY(-10px) rotateY(10deg) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 15px 30px var(--primary-color, #4CAF50),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

.ultra-3d-project-card:hover .hologram-ring {
    opacity: 0.8;
    transform: scale(1.1);
}

.ultra-3d-project-card:hover .hologram-pulse {
    opacity: 1;
    animation-duration: 1s;
}

/* Content Section */
.ultra-content {
    flex: 1;
    z-index: 3;
    position: relative;
}

/* Title Section with 3D Text - ULTRA COMPACT */
.ultra-title-section {
    text-align: center;
    margin-bottom: 0.5rem;
}

.ultra-project-title {
    margin: 0;
    line-height: 1.1;
    color: #2c3e50;
    transform: translateZ(10px);
}

.title-main {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50 0%, var(--primary-color, #4CAF50) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.title-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 0.15rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 3D Title Underline */
.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #4CAF50), var(--secondary-color, #388E3C));
    margin: 1rem auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transform: translateZ(5px);
}

/* Shine effect for underline */
.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: underlineShine 3s ease-in-out infinite;
}

@keyframes underlineShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Description - ULTRA COMPACT */
.ultra-description {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-bottom: 0.5rem;
    text-align: center;
    font-weight: 400;
}

/* Features Grid - ULTRA COMPACT */
.ultra-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.feature-tag {
    padding: 0.5rem 1rem;
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transform: translateZ(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Subtle 3D effect */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-tag:hover {
    transform: translateZ(8px) translateY(-2px);
    background: #4CAF50 !important;
    color: white !important;
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* Stats Section - ULTRA COMPACT */
.ultra-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateZ(5px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.stat-item i {
    display: block;
    font-size: 1.25rem;
    color: #4CAF50 !important;
    margin-bottom: 0.5rem;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.stat-item:hover {
    transform: translateZ(10px) translateY(-3px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 3D Actions Panel */
.ultra-actions {
    margin-top: auto;
    z-index: 5;
    position: relative;
}

/* Social Links - ULTRA COMPACT */
.ultra-social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.social-btn {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transform: translateZ(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    
    /* Default Glassmorphism */
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #6c757d;
    
    /* Subtle 3D Shadow */
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Brand-Specific Colors */
.social-btn.youtube:hover {
    background: #FF0000;
    color: white;
    transform: translateZ(15px) translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.3);
}

.social-btn.discord:hover {
    background: #5865F2;
    color: white;
    transform: translateZ(15px) translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
}

.social-btn.patreon:hover {
    background: #FF424D;
    color: white;
    transform: translateZ(15px) translateY(-5px) scale(1.1);
    box-shadow: 0 8px 16px rgba(255, 66, 77, 0.3);
}

/* Ripple Effect for Social Buttons */
.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Main Action Button */
.ultra-main-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateZ(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    
    /* Base 3D Styling */
    border: none;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.btn-active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
    color: white;
}

.btn-coming-soon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    pointer-events: none;
}

.ultra-main-btn:hover {
    transform: translateZ(20px) translateY(-5px) scale(1.02);
    text-decoration: none;
    color: white;
    
    /* Enhanced Shadow */
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.2),
        0 8px 16px rgba(76, 175, 80, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Button Icon */
.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.ultra-main-btn:hover .btn-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button Glow Effect */
.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.ultra-main-btn:hover .btn-glow {
    transform: translateX(100%);
}

/* Button Particles */
.btn-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.btn-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: btnParticle 1s ease-out infinite;
}

.btn-particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.btn-particle:nth-child(2) {
    left: 50%;
    animation-delay: 0.3s;
}

.btn-particle:nth-child(3) {
    left: 80%;
    animation-delay: 0.6s;
}

@keyframes btnParticle {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px) scale(0);
    }
}

.ultra-main-btn:hover .btn-particle {
    animation-duration: 0.8s;
}

/* 3D Border Effects */
.ultra-border-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.border-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color, #4CAF50);
    opacity: 0;
    transition: all 0.3s ease;
}

.border-corner.top-left {
    top: 1rem;
    left: 1rem;
    border-right: none;
    border-bottom: none;
}

.border-corner.top-right {
    top: 1rem;
    right: 1rem;
    border-left: none;
    border-bottom: none;
}

.border-corner.bottom-left {
    bottom: 1rem;
    left: 1rem;
    border-right: none;
    border-top: none;
}

.border-corner.bottom-right {
    bottom: 1rem;
    right: 1rem;
    border-left: none;
    border-top: none;
}

.ultra-3d-project-card:hover .border-corner {
    opacity: 0.8;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .ultra-modern-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .ultra-3d-project-card {
        min-height: 320px;
    }
}

@media (max-width: 768px) {
    .ultra-modern-projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0;
    }
    
    .ultra-3d-project-card {
        min-height: 300px;
        
        /* Reduced 3D effects on mobile */
        animation: none;
    }
    
    .ultra-3d-project-card:hover {
        transform: translateY(-10px) scale(1.01);
    }
    
    .ultra-card-inner {
        padding: 0.9rem;
        min-height: 300px;
    }
    
    .ultra-project-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .title-main {
        font-size: 1.75rem;
    }
    
    .ultra-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item:nth-child(3) {
        grid-column: 1 / -1;
    }
    
    /* Disable particles on mobile for performance */
    .ultra-particles,
    .btn-particles {
        display: none;
    }
}

@media (max-width: 480px) {
    .ultra-card-inner {
        padding: 1rem;
    }
    
    .ultra-features {
        gap: 0.5rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ultra-main-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    .ultra-3d-project-card,
    .particle,
    .btn-particle,
    .hologram-ring,
    .hologram-pulse {
        animation: none !important;
    }
    
    .ultra-3d-project-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 1.5),
       (min-resolution: 144dpi) {
    
    .icon-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
    }
    
    .ultra-bg-primary {
        image-rendering: auto;
    }
}

/* ===============================================
   FORCE GREEN BACKGROUND FOR ALL PROJECT CARDS
   =============================================== */

/* Override any CSS variables that might be setting different colors */
.ultra-3d-project-card,
.project-card,
.card {
    --primary-color: #4CAF50 !important;
    --secondary-color: #388E3C !important;
}

/* Force green background for any card gradients */
.ultra-3d-project-card .ultra-bg-overlay,
.ultra-3d-project-card:hover .ultra-bg-overlay,
.project-card .bg-overlay,
.card .bg-overlay {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
}

/* Force green colors for all particles */
.ultra-3d-project-card .particle,
.project-card .particle,
.card .particle {
    background: #4CAF50 !important;
}

/* Force green colors for all borders and accents */
.ultra-3d-project-card:hover,
.project-card:hover,
.card:hover {
    border-color: rgba(76, 175, 80, 0.4) !important;
}

/* Force green for any status badges */
.ultra-3d-project-card .ultra-status-badge.status-active,
.project-card .status-badge.status-active,
.card .status-badge.status-active,
.status-active {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    color: white !important;
}

/* Force green for feature tags */
.ultra-3d-project-card .feature-tag,
.project-card .feature-tag,
.card .feature-tag,
.feature-tag {
    background: rgba(76, 175, 80, 0.1) !important;
    color: #4CAF50 !important;
    border: 1px solid rgba(76, 175, 80, 0.2) !important;
}

.ultra-3d-project-card .feature-tag:hover,
.project-card .feature-tag:hover,
.card .feature-tag:hover,
.feature-tag:hover {
    background: #4CAF50 !important;
    color: white !important;
}

/* Force green for buttons */
.ultra-3d-project-card .btn-active,
.project-card .btn-active,
.card .btn-active,
.btn-active {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
    color: white !important;
}

/* Force green for main card backgrounds - OVERRIDE ALL POSSIBLE SOURCES */
.ultra-3d-project-card,
.ultra-3d-project-card .ultra-bg-layers,
.ultra-3d-project-card .ultra-bg-primary,
.project-card,
.card {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%) !important;
}

/* Additional overrides for any remaining color variations */
[class*="project-card"],
[class*="ultra-3d"],
[id*="project"] {
    --primary-color: #4CAF50 !important;
    --secondary-color: #388E3C !important;
}
