/* ===== PROJECTS PAGE STYLES ===== */

/* Projects Page */
.projects-hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Floating Project Elements */
.floating-project-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.project-bubble {
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, rgba(102, 204, 255, 0.2) 70%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: projectBubbleFloat 12s ease-in-out infinite;
    opacity: 0.7;
}

.project-bubble-1 { left: 5%; top: 15%; animation-delay: 0s; }
.project-bubble-2 { left: 15%; top: 25%; animation-delay: 2s; }
.project-bubble-3 { left: 25%; top: 20%; animation-delay: 4s; }
.project-bubble-4 { left: 35%; top: 30%; animation-delay: 6s; }
.project-bubble-5 { left: 45%; top: 15%; animation-delay: 8s; }
.project-bubble-6 { left: 55%; top: 25%; animation-delay: 10s; }

@keyframes projectBubbleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-30px) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-15px) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translateY(-45px) scale(1.2);
        opacity: 0.8;
    }
}

/* Project Background Icons */
.project-background-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.project-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: projectIconFloat 15s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.project-icon:hover {
    transform: scale(1.4);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 35px rgba(102, 204, 255, 0.7);
}

.project-icon-1 { left: 8%; top: 35%; animation-delay: 0s; }
.project-icon-2 { left: 18%; top: 45%; animation-delay: 2s; }
.project-icon-3 { left: 28%; top: 40%; animation-delay: 4s; }
.project-icon-4 { left: 38%; top: 50%; animation-delay: 6s; }
.project-icon-5 { left: 48%; top: 35%; animation-delay: 8s; }
.project-icon-6 { left: 58%; top: 45%; animation-delay: 10s; }

@keyframes projectIconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateY(-30px) rotate(-5deg);
    }
}

.projects-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 0 20px rgba(102, 204, 255, 0.5);
}

.projects-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.project-stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.project-stat:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(102, 204, 255, 0.3);
}

.projects-subtitle {
    font-size: 1.3rem;
    color: var(--ocean-blue);
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(102, 204, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image {
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-preview {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    transform: scale(0);
    transition: all 0.3s ease;
}

.project-card:hover .project-preview {
    transform: scale(1);
}

.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-glow {
    opacity: 0.3;
}

.project-content {
    padding: 1.5rem;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
}

.project-badge {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: projectBadgeGlow 2s ease-in-out infinite alternate;
}

@keyframes projectBadgeGlow {
    0% {
        box-shadow: 0 0 10px rgba(102, 204, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(102, 204, 255, 0.8);
    }
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(102, 204, 255, 0.1);
    color: var(--primary-blue);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--water-cyan);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: rgba(102, 204, 255, 0.1);
    border: 1px solid rgba(102, 204, 255, 0.2);
}

.project-link:hover {
    color: var(--white);
    background: rgba(102, 204, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 204, 255, 0.3);
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: scale(1.2);
}

/* ===== NEW MODERN PROJECTS DESIGN ===== */

/* Modern Hero Section */
.projects-hero-modern {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.projects-hero-modern::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(102, 204, 255, 0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-modern {
    max-width: 600px;
}

.hero-title-modern {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleSlideIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }

.title-accent {
    display: block;
    font-size: 3rem;
    color: var(--water-cyan);
    text-shadow: 0 0 30px rgba(102, 204, 255, 0.5);
    animation: titleSlideIn 0.8s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle-modern {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.stat-modern {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-modern:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(102, 204, 255, 0.3);
}

.hero-visual-modern {
    position: relative;
    height: 400px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: var(--water-cyan);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.floating-card:hover {
    transform: scale(1.1) translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(102, 204, 255, 0.4);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
}

/* Modern Filter Section */
.filter-section-modern {
    padding: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-container-modern {
    display: flex;
    justify-content: center;
}

.filter-tabs-modern {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-tab-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tab-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 25px;
}

.filter-tab-modern.active::before {
    opacity: 1;
}

.filter-tab-modern.active {
    color: white;
    transform: scale(1.05);
}

.filter-tab-modern:hover:not(.active) {
    color: var(--water-cyan);
    background: rgba(255, 255, 255, 0.1);
}

.tab-icon {
    position: relative;
    z-index: 1;
}

.tab-text {
    position: relative;
    z-index: 1;
}

.tab-count {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modern Projects Grid */
.projects-grid-modern {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.projects-container-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.project-card-modern {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.project-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 204, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card-modern:hover::before {
    opacity: 1;
}

.project-card-modern:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 204, 255, 0.3);
    border-color: rgba(102, 204, 255, 0.3);
}

.project-preview-modern {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image-modern {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 204, 255, 0.1) 0%, rgba(0, 150, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--water-cyan);
    transition: all 0.3s ease;
}

.project-card-modern:hover .image-placeholder {
    transform: scale(1.1);
}

.project-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card-modern:hover .project-overlay-modern {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--water-cyan);
}

.overlay-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.project-badge-modern {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 20;
    transition: all 0.3s ease;
    animation: badgePulse 2s ease-in-out infinite;
    overflow: hidden;
    pointer-events: none;
}

.project-badge-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: badgeShine 3s infinite;
}

.project-badge-modern i {
    font-size: 0.85rem;
    animation: iconBounce 2s ease-in-out infinite;
}

.project-badge-modern:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.project-badge-modern.featured {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.project-badge-modern.featured:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.project-badge-modern.popular {
    background: rgba(255, 105, 180, 0.2);
    color: #ff69b4;
    border: 2px solid rgba(255, 105, 180, 0.5);
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.3);
}

.project-badge-modern.popular:hover {
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
}

.project-badge-modern.under-development {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 2px solid rgba(255, 152, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

.project-badge-modern.under-development:hover {
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.5);
}

.project-badge-modern.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 2px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.project-badge-modern.completed:hover {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.project-badge-modern.new {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    border: 2px solid rgba(0, 191, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.project-badge-modern.new:hover {
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.5);
}

.project-badge-modern.coming-soon {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 2px solid rgba(156, 39, 176, 0.5);
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.3);
}

.project-badge-modern.coming-soon:hover {
    box-shadow: 0 0 20px rgba(156, 39, 176, 0.5);
}

/* Legacy badge styles for backward compatibility */
.project-badge-modern.design {
    background: rgba(138, 43, 226, 0.2);
    color: #8a2be2;
    border: 2px solid rgba(138, 43, 226, 0.5);
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.project-badge-modern.ecommerce {
    background: rgba(34, 139, 34, 0.2);
    color: #228b22;
    border: 2px solid rgba(34, 139, 34, 0.5);
    box-shadow: 0 0 10px rgba(34, 139, 34, 0.3);
}

.project-badge-modern.game {
    background: rgba(255, 69, 0, 0.2);
    color: #ff4500;
    border: 2px solid rgba(255, 69, 0, 0.5);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.3);
}

.project-badge-modern.data {
    background: rgba(0, 191, 255, 0.2);
    color: #00bfff;
    border: 2px solid rgba(0, 191, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.project-info-modern {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--water-cyan);
    margin: 0;
    line-height: 1.3;
}

.project-category-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
}

.project-category-modern i {
    color: var(--water-cyan);
}

.project-description-modern {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-chip-modern {
    background: rgba(102, 204, 255, 0.1);
    color: var(--water-cyan);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(102, 204, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-chip-modern:hover {
    background: rgba(102, 204, 255, 0.2);
    transform: translateY(-2px);
}

.project-actions-modern {
    display: flex;
    gap: 1rem;
}

.action-btn-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn-modern:hover::before {
    left: 100%;
}

.action-btn-modern.primary {
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    color: white;
}

.action-btn-modern.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 204, 255, 0.4);
}

.action-btn-modern.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--water-cyan);
    border: 1px solid rgba(102, 204, 255, 0.3);
}

.action-btn-modern.secondary:hover {
    background: rgba(102, 204, 255, 0.1);
    transform: translateY(-2px);
}

/* Modern CTA Section */
.cta-projects-modern {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.1) 0%, rgba(0, 200, 255, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.cta-projects-modern::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(102, 204, 255, 0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.cta-content-modern {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cta-text-modern {
    max-width: 600px;
}

.cta-title-modern {
    font-size: 3rem;
    font-weight: 700;
    color: var(--water-cyan);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle-modern {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.cta-actions-modern {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn-modern:hover::before {
    left: 100%;
}

.cta-btn-modern.primary {
    background: linear-gradient(135deg, var(--water-cyan) 0%, var(--primary-blue) 100%);
    color: white;
}

.cta-btn-modern.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(102, 204, 255, 0.4);
}

.cta-btn-modern.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--water-cyan);
    border: 2px solid rgba(102, 204, 255, 0.3);
}

.cta-btn-modern.secondary:hover {
    background: rgba(102, 204, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--water-cyan);
}

/* Animations */
@keyframes titleSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .projects-hero-modern {
        padding: 4rem 0 3rem;
    }
    
    .hero-content-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title-modern {
        font-size: 3rem;
    }
    
    .projects-container-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .filter-tabs-modern {
        flex-wrap: wrap;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .projects-hero-modern {
        padding: 3rem 0 2rem;
    }
    
    .hero-content-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title-modern {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle-modern {
        font-size: 1rem;
    }
    
    .hero-stats-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-modern {
        padding: 1rem;
    }
    
    .hero-visual-modern {
        display: none;
    }
    
    .filter-section-modern {
        padding: 1rem 0;
    }
    
    .filter-tabs-modern {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.25rem;
    }
    
    .filter-tab-modern {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        min-width: auto;
        gap: 0.4rem;
    }
    
    .tab-icon {
        font-size: 0.9rem;
    }
    
    .tab-text {
        font-size: 0.85rem;
    }
    
    .tab-count {
        font-size: 0.75rem;
        padding: 0.15rem 0.5rem;
    }
    
    .projects-loading {
        padding: 2rem 1rem;
    }
    
    .projects-loading-icon {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }
    
    .projects-loading p {
        font-size: 0.95rem;
    }
    
    .projects-grid-modern {
        padding: 2.5rem 0;
    }
    
    .projects-container-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card-modern {
        border-radius: 16px;
    }
    
    .project-preview-modern {
        height: 200px;
    }
    
    /* Project badge mobile */
    .project-badge-modern {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .project-badge-modern i {
        font-size: 0.75rem;
    }
    
    .project-badge-modern span {
        font-size: 0.7rem;
    }
    
    .project-info-modern {
        padding: 1.5rem;
    }
    
    .project-title-modern {
        font-size: 1.25rem;
    }
    
    .cta-projects-modern {
        padding: 3rem 0;
    }
    
    .cta-content-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-title-modern {
        font-size: 2rem;
    }
    
    .cta-actions-modern {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn-modern {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .projects-hero-modern {
        padding: 2.5rem 0 1.5rem;
    }
    
    .hero-title-modern {
        font-size: 1.75rem;
    }
    
    .hero-subtitle-modern {
        font-size: 0.95rem;
    }
    
    .hero-stats-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-modern {
        padding: 0.875rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .filter-tab-modern {
        padding: 0.6rem 0.875rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }
    
    .tab-icon {
        font-size: 0.85rem;
    }
    
    .tab-text {
        font-size: 0.8rem;
    }
    
    .tab-count {
        font-size: 0.7rem;
        padding: 0.125rem 0.45rem;
    }
    
    .projects-loading {
        padding: 1.5rem 0.75rem;
    }
    
    .projects-loading-icon {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .projects-loading p {
        font-size: 0.9rem;
    }
    
    .projects-grid-modern {
        padding: 2rem 0;
    }
    
    .project-info-modern {
        padding: 1.25rem;
    }
    
    .project-title-modern {
        font-size: 1.1rem;
    }
    
    .project-description-modern {
        font-size: 0.9rem;
    }
    
    .project-tech-modern {
        gap: 0.4rem;
    }
    
    .tech-chip-modern {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .project-actions-modern {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .cta-title-modern {
        font-size: 1.75rem;
    }
    
    .cta-subtitle-modern {
        font-size: 0.95rem;
    }
    
    .filter-section-modern {
        padding: 0.75rem 0;
    }
    
    .filter-tabs-modern {
        gap: 0.4rem;
        padding: 0.2rem;
    }
    
    .filter-tab-modern {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }
    
    .project-preview-modern {
        height: 180px;
    }
    
    .project-info-modern {
        padding: 1.25rem;
    }
    
    .project-title-modern {
        font-size: 1.15rem;
    }
    
    .project-description-modern {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .projects-hero-modern {
        padding: 2.5rem 0 1.5rem;
    }
    
    .hero-title-modern {
        font-size: 1.5rem;
    }
    
    .hero-stats-modern {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-tab-modern {
        padding: 0.45rem 0.6rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .tab-icon {
        font-size: 0.75rem;
    }
    
    .tab-text {
        font-size: 0.7rem;
    }
    
    .tab-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
        display: none; /* Hide count on very small screens to save space */
    }
    
    .projects-loading {
        padding: 1.25rem 0.5rem;
    }
    
    .projects-loading-icon {
        font-size: 1.25rem;
    }
    
    .projects-loading p {
        font-size: 0.85rem;
    }
    
    .project-preview-modern {
        height: 160px;
    }
    
    .project-title-modern {
        font-size: 1rem;
    }
    
    .project-description-modern {
        font-size: 0.85rem;
    }
    
    .cta-title-modern {
        font-size: 1.5rem;
    }
    
    .cta-subtitle-modern {
        font-size: 0.9rem;
    }
}

/* Loading States */
.projects-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.projects-loading-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== CRITICAL RESPONSIVE FIXES - Prevent Crashes ===== */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    .projects-hero-modern,
    .hero-content-modern,
    .projects-container-modern,
    .projects-container,
    .filter-section-modern,
    .filter-tabs-modern {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    /* Ensure all cards don't overflow */
    .project-card,
    .project-card-modern,
    .stat-modern {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Fix grid layouts */
    .projects-container-modern {
        grid-template-columns: 1fr !important;
    }
    
    .projects-container {
        grid-template-columns: 1fr !important;
    }
    
    .hero-stats-modern {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    /* Additional mobile fixes */
    .projects-hero-modern,
    .projects-grid-modern,
    .filter-section-modern,
    .cta-projects-modern {
        padding-left: 1rem;
        padding-right: 1rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .filter-tabs-modern {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

