/* CSS Variables */
:root {
    --primary-purple: #6905E9;
    --primary-hover: #5b05cc;
    --primary-dimmed: #5105b9;
    --accent-color: #7C01DD;
    --light-accent: #C070FF;
    --secondary-color: #BCBCBC;
    --accent-yellow: #c89700;
    --accent-orange: #fd7e14;
    --accent-blue: #0066CC;
    --accent-green: #28a745;
    --accent-teal: #20c997;
    --primary-gradient: linear-gradient(135deg, #6905E9 0%, #7C01DD 100%);
    --secondary-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --accent-gradient: linear-gradient(135deg, #C070FF 0%, #bf9305 100%);
    --accent-blue-gradient: linear-gradient(135deg, #0066CC 0%, #6905E9 100%);
    --accent-green-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --dark-gradient: linear-gradient(135deg, rgba(6, 5, 43, 0.9) 0%, rgba(6, 5, 43, 0.7) 100%);
    --light-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --text-muted-dark: rgba(33, 37, 41, 0.7);
    --text-accent: #C070FF;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(105, 5, 233, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.portfolio-page {
    padding-top: 0 !important;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0a1929 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.portfolio-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    padding: 4rem 0 2rem 0;
    flex-direction: column;
    justify-content: center;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    /* Safari optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(105, 5, 233, 0.1), rgba(124, 1, 221, 0.1));
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(0, -20px, 0) rotate(180deg);
        opacity: 1;
    }
}

.portfolio-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    /* Ensure content stays above floating shapes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.portfolio-hero-title {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6905E9, #7C01DD, #C070FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(105, 5, 233, 0.3);
}

.portfolio-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 300;
}

.portfolio-hero-cta .btn {
    background: linear-gradient(135deg, #6905E9, #7C01DD);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(105, 5, 233, 0.3);
    transition: all 0.3s ease;
}

.portfolio-hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(105, 5, 233, 0.4);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.scroll-indicator:hover {
    transform: translateY(-5px);
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    margin-bottom: 1rem;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

.scroll-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.portfolio-grid-section {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.portfolio-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(105, 5, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 1, 221, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(192, 112, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.section-title {
    background: linear-gradient(135deg, #6905E9, #7C01DD, #C070FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(105, 5, 233, 0.3);
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    position: relative;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

/* Portfolio Card Glass Design */
.portfolio-card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    min-height: 400px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.portfolio-card-glass:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-heavy);
    border-color: rgba(105, 5, 233, 0.3);
}

/* See More Cards */
.see-more-card {
    background: linear-gradient(135deg, rgba(105, 5, 233, 0.1) 0%, rgba(124, 1, 221, 0.05) 100%);
    border: 2px solid rgba(105, 5, 233, 0.2);
    min-height: 200px;
}

.see-more-card:hover {
    background: linear-gradient(135deg, rgba(105, 5, 233, 0.2) 0%, rgba(124, 1, 221, 0.1) 100%);
    border-color: rgba(105, 5, 233, 0.4);
    transform: translateY(-5px) scale(1.02);
}

.see-more-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
}

.see-more-card:hover .see-more-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-heavy);
}

.see-more-title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--text-shadow);
}

.see-more-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.see-more-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.see-more-arrow {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.see-more-card:hover .see-more-arrow {
    transform: translateX(5px);
    color: var(--text-light);
}

/* Liquid Background Effects */
.liquid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.liquid-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: liquid-float 8s ease-in-out infinite;
}

.liquid-shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.liquid-shape-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.liquid-shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes liquid-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.1); 
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(1.2); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-15px) rotate(270deg) scale(1.1); 
        opacity: 0.5;
    }
}

/* Glass Overlay */
.glass-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

/* Background Image */
.portfolio-bg-image {
    z-index: 1;
    opacity: 0.3;
    transition: var(--transition);
}

.portfolio-bg-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

/* Ensure content is above overlays */
.portfolio-card-glass .position-relative {
    z-index: 10 !important;
}

.portfolio-card-glass:hover .portfolio-bg-image {
    opacity: 0.5;
    transform: scale(1.05);
}

/* Portfolio Logo */
.portfolio-logo-container {
    flex-shrink: 0;
}

.portfolio-logo-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.portfolio-logo {
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    filter: brightness(1.2);
}

.portfolio-card-glass:hover .portfolio-logo-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-medium);
    border-color: rgba(105, 5, 233, 0.4);
}

/* Portfolio Content */
.portfolio-title {
    color: var(--text-light);
    font-size: 1.4rem;
    line-height: 1.2;
    text-shadow: var(--text-shadow);
}

.portfolio-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.3;
}

.portfolio-summary {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Portfolio Badge */
.portfolio-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}


@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Tech Stack Pills */
.tech-stack-pills {
    margin: 1rem 0;
}

.tech-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    margin: 2px;
    transition: var(--transition);
}

.tech-pill:hover {
    background: rgba(105, 5, 233, 0.2);
    border-color: rgba(105, 5, 233, 0.4);
    color: var(--text-light);
}

.tech-pill-more {
    background: rgba(105, 5, 233, 0.2);
    border-color: rgba(105, 5, 233, 0.4);
    color: var(--text-light);
}

/* Glass Bottom Bar */
.glass-bottom-bar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: auto;
    transition: var(--transition);
}

.glass-stats {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.glass-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.portfolio-card-glass:hover .glass-arrow {
    transform: translateX(5px);
    color: var(--text-light);
}

/* Hover Effects */
.liquid-hover {
    z-index: 3;
    transition: var(--transition);
}

.portfolio-card-glass:hover .liquid-hover {
    opacity: 1;
}

.liquid-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(105, 5, 233, 0.1);
    animation: wave-expand 3s ease-out infinite;
}

.liquid-wave-1 {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.liquid-wave-2 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.liquid-wave-3 {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes wave-expand {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Glass Hover Overlay */
.glass-hover-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 4;
    transition: var(--transition);
}

.portfolio-card-glass:hover .glass-hover-overlay {
    opacity: 1;
}

.glass-hover-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto;
    box-shadow: var(--shadow-glow);
}

.glass-hover-title {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.glass-hover-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Portfolio Link */
.portfolio-link {
    z-index: 20 !important;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.portfolio-link:hover {
    text-decoration: none;
    color: inherit;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.cta-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.cta-title {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}


.portfolio-cta-section {
    padding: 6rem 0;
    background: transparent;
    position: relative;
}

.portfolio-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(105, 5, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(124, 1, 221, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.cta-title {
    background: linear-gradient(135deg, #6905E9, #7C01DD, #C070FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(105, 5, 233, 0.3);
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero-title {
        font-size: 2.5rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-hero {
        padding: 4rem 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }
    
    .scroll-indicator {
        margin-top: 1rem;
    }
    
    .portfolio-grid-section {
        padding: 4rem 0;
    }
    
    .portfolio-cta-section {
        padding: 4rem 0;
    }
    
}

@media (max-width: 576px) {
    .portfolio-hero-title {
        font-size: 2rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 1rem;
    }
    
    .portfolio-hero-cta .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .scroll-indicator {
        margin-top: 0.5rem;
    }
    
}

/* iPhone 5 and very small screens (320px and below) */
@media (max-width: 375px) {
    .portfolio-hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 0 4rem 0; /* Add bottom padding for scroll indicator */
    }
    
    .portfolio-hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .portfolio-hero-cta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .scroll-indicator {
        margin-top: 0.25rem;
    }
    
    .portfolio-grid {
        gap: 0.75rem;
    }
    
    .portfolio-card-modern {
        min-height: 350px;
    }
}

/* iPhone 5 specific (320px) */
@media (max-width: 320px) {
    .portfolio-hero {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 3rem 0 3.5rem 0;
    }
    
    .portfolio-hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .portfolio-hero-subtitle {
        font-size: 0.85rem;
        padding: 0 0.25rem;
    }
    
    .portfolio-hero-cta .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .portfolio-card-modern {
        min-height: 300px;
    }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix Safari viewport height issues */
    .portfolio-hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    /* Optimize backdrop-filter for Safari */
    .portfolio-card-modern,
    .portfolio-card-glass {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        /* Reduce blur intensity on Safari for better performance */
        backdrop-filter: blur(15px);
    }
    
    /* Fix floating shapes rendering */
    .shape {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
    
    /* Prevent text overlay issues */
    .portfolio-hero-content {
        position: relative;
        z-index: 10;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

.portfolio-card-modern {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}


.portfolio-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, 
        rgba(105, 5, 233, 0.1) 0%, 
        rgba(124, 1, 221, 0.05) 30%, 
        transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    z-index: 1;
    animation: liquid-flow 8s ease-in-out infinite;
}

@keyframes liquid-flow {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0;
    }
    25% {
        transform: translate(-40%, -60%) rotate(90deg) scale(1.1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-60%, -40%) rotate(180deg) scale(1.2);
        opacity: 0.5;
    }
    75% {
        transform: translate(-50%, -50%) rotate(270deg) scale(1.1);
        opacity: 0.3;
    }
}

.portfolio-card-modern:hover {
    transform: translateY(-15px) scale(1.03) rotateX(5deg);
    box-shadow: 
        0 25px 50px rgba(105, 5, 233, 0.25),
        0 15px 30px rgba(192, 112, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(105, 5, 233, 0.4);
    background: rgba(255, 255, 255, 0.12);
}

.portfolio-card-modern:hover::before {
    opacity: 1;
}

.portfolio-card-modern:hover::after {
    opacity: 0.6;
    animation-duration: 4s;
}

.portfolio-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.portfolio-card-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(105, 5, 233, 0.1) 25%, 
        transparent 50%, 
        rgba(192, 112, 255, 0.1) 75%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.portfolio-card-modern:hover .portfolio-card-overlay {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(15px);
}

.portfolio-card-modern:hover .portfolio-card-overlay::before {
    opacity: 1;
}

.portfolio-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 0;
    overflow: hidden;
}

.portfolio-card-modern:hover .portfolio-card-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateZ(10px);
}

.portfolio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.portfolio-logo-container {
    flex-shrink: 0;
    position: relative;
}

.portfolio-logo-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        rgba(105, 5, 233, 0.2), 
        rgba(192, 112, 255, 0.2), 
        rgba(105, 5, 233, 0.2));
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
    animation: liquid-pulse 3s ease-in-out infinite;
}

@keyframes liquid-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.portfolio-logo {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(105, 5, 233, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.portfolio-card-modern:hover .portfolio-logo {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.4) drop-shadow(0 0 15px rgba(192, 112, 255, 0.5));
}

.portfolio-card-modern:hover .portfolio-logo-container::before {
    opacity: 0.6;
    animation-duration: 1.5s;
}

.portfolio-badge-container {
    flex-shrink: 0;
    position: relative;
}

.portfolio-badge-container::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(105, 5, 233, 0.1), 
        rgba(255, 255, 255, 0.1));
    border-radius: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.portfolio-card-modern:hover .portfolio-badge-container::before {
    opacity: 0.8;
}

.portfolio-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-card-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(105, 5, 233, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card-modern:hover .portfolio-card-title {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(192, 112, 255, 0.5);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(192, 112, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.portfolio-card-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card-modern:hover .portfolio-card-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 15px rgba(105, 5, 233, 0.2);
    transform: translateY(-1px);
}

.portfolio-card-summary {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card-modern:hover .portfolio-card-summary {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(192, 112, 255, 0.1);
    transform: translateY(-1px);
}

.portfolio-card-footer {
    margin-top: auto;
    padding-top: 1.5rem;
}

.portfolio-card-cta {
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    max-width: 100%;
}

.portfolio-card-cta::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.6s ease;
    z-index: 1;
}

.portfolio-card-cta i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.portfolio-card-modern:hover .portfolio-card-cta {
    color: #C070FF;
    text-shadow: 0 0 15px rgba(192, 112, 255, 0.6);
    background: rgba(192, 112, 255, 0.15);
    border-color: rgba(192, 112, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(192, 112, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.portfolio-card-modern:hover .portfolio-card-cta::before {
    left: 100%;
}

.portfolio-card-modern:hover .portfolio-card-cta i {
    transform: translateX(8px) scale(1.1);
    color: #C070FF;
}

.portfolio-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(105, 5, 233, 0.1) 25%, 
        transparent 50%, 
        rgba(192, 112, 255, 0.1) 75%, 
        transparent 100%);
        opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: 24px;
}

.portfolio-card-modern:hover::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .portfolio-card-modern {
        min-height: 350px;
    }
    
    .portfolio-card-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-card-title {
        font-size: 1.3rem;
    }
    
    .portfolio-card-subtitle {
        font-size: 0.9rem;
    }
    
    .portfolio-card-summary {
        font-size: 0.9rem;
    }
    
    .portfolio-logo {
        max-width: 40px;
        max-height: 40px;
    }
}

.liquid-glass-effect {
    position: relative;
    overflow: hidden;
}

.liquid-glass-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(105, 5, 233, 0.3), 
        rgba(192, 112, 255, 0.3), 
        rgba(105, 5, 233, 0.3));
    border-radius: 26px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    animation: liquid-border 4s ease-in-out infinite;
}

@keyframes liquid-border {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

.portfolio-card-modern:hover .liquid-glass-effect::after {
    opacity: 0.8;
    animation-duration: 2s;
}

@media (max-width: 576px) {
    .portfolio-card-modern {
        min-height: 300px;
    }
    
    .portfolio-card-overlay {
        padding: 1rem;
    }
    
    .portfolio-card-title {
        font-size: 1.2rem;
    }
    
    .portfolio-card-subtitle {
        font-size: 0.85rem;
    }
    
    .portfolio-card-summary {
        font-size: 0.85rem;
    }
    
    .portfolio-card-cta {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

/* Simplified Case Study Card Design - iOS Style Glass */
.case-study-card-simple {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-card-simple:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
}

.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-card-simple:hover .card-overlay {
    opacity: 1;
}

.card-logo {
    align-self: flex-start;
}

.logo-img {
    max-height: 40px;
    max-width: 120px;
    filter: brightness(0) invert(1);
}

.card-cta {
    align-self: center;
    margin-top: auto;
}

.cta-text {
    background: rgba(105, 5, 233, 0.9);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.cta-text:hover {
    background: rgba(105, 5, 233, 1);
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 20px 20px;
    position: relative;
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    margin-bottom: 1rem;
}

.industry-badge {
    background: rgba(192, 112, 255, 0.2);
    color: rgba(192, 112, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(192, 112, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-subtitle {
    font-size: 1rem;
    color: rgba(192, 112, 255, 0.9);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.card-summary {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ===== CARD VARIATION 1: NEUMORPHISM STYLE ===== */
.case-study-card-neumorphism {
    background: #f0f0f3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        20px 20px 60px #d1d9e6,
        -20px -20px 60px #ffffff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-card-neumorphism:hover {
    transform: translateY(-8px);
    box-shadow: 
        25px 25px 80px #d1d9e6,
        -25px -25px 80px #ffffff;
}

.case-study-card-neumorphism .card-content {
    background: #f0f0f3;
    border-radius: 0 0 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.case-study-card-neumorphism .card-title {
    color: #2d3748;
    text-shadow: none;
}

.case-study-card-neumorphism .card-subtitle {
    color: #6905E9;
    text-shadow: none;
}

.case-study-card-neumorphism .card-summary {
    color: #718096;
    text-shadow: none;
}

.case-study-card-neumorphism .industry-badge {
    background: linear-gradient(145deg, #e6e9ef, #ffffff);
    color: #6905E9;
    box-shadow: 
        5px 5px 10px #d1d9e6,
        -5px -5px 10px #ffffff;
    border: none;
    backdrop-filter: none;
}

/* ===== CARD VARIATION 2: DARK GLASS ===== */
.case-study-card-dark-glass {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-card-dark-glass:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.case-study-card-dark-glass .card-content {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.05) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== CARD VARIATION 3: MINIMALIST ===== */
.case-study-card-minimal {
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.case-study-card-minimal:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #6905E9;
}

.case-study-card-minimal .card-content {
    background: white;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #f1f5f9;
}

.case-study-card-minimal .card-title {
    color: #1a202c;
    text-shadow: none;
    font-weight: 600;
}

.case-study-card-minimal .card-subtitle {
    color: #6905E9;
    text-shadow: none;
    font-weight: 500;
}

.case-study-card-minimal .card-summary {
    color: #4a5568;
    text-shadow: none;
}

.case-study-card-minimal .industry-badge {
    background: #f7fafc;
    color: #6905E9;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    backdrop-filter: none;
}

/* ===== CARD VARIATION 4: GRADIENT GLASS (ENHANCED) ===== */
.case-study-card-gradient {
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.1) 0%, 
        rgba(192, 112, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(105, 5, 233, 0.2);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(105, 5, 233, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Glassy shimmer effect from vertical layout */
.case-study-card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.case-study-card-gradient:hover::before {
    left: 100%;
}

.case-study-card-gradient:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 60px rgba(105, 5, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.15) 0%, 
        rgba(192, 112, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(105, 5, 233, 0.4);
}

.case-study-card-gradient .card-image {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.case-study-card-gradient .card-image img {
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.case-study-card-gradient:hover .card-image img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(105, 5, 233, 0.4));
}

.case-study-card-gradient .card-content {
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.05) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0 0 18px 18px;
    border-top: 1px solid rgba(105, 5, 233, 0.1);
    position: relative;
    z-index: 2;
}

.case-study-card-gradient .card-title {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.case-study-card-gradient .card-subtitle {
    color: rgba(192, 112, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.case-study-card-gradient .card-summary {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.case-study-card-gradient .industry-badge {
    background: rgba(192, 112, 255, 0.2);
    color: rgba(192, 112, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(192, 112, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

/* ===== CARD VARIATION 5: CARDSTYLE ===== */
.case-study-card-cardstyle {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e2e8f0;
}

.case-study-card-cardstyle:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.case-study-card-cardstyle .card-content {
    background: white;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #f1f5f9;
}

.case-study-card-cardstyle .card-title {
    color: #1a202c;
    text-shadow: none;
    font-weight: 700;
}

.case-study-card-cardstyle .card-subtitle {
    color: #6905E9;
    text-shadow: none;
    font-weight: 600;
}

.case-study-card-cardstyle .card-summary {
    color: #4a5568;
    text-shadow: none;
}

.case-study-card-cardstyle .industry-badge {
    background: #6905E9;
    color: white;
    border: none;
    box-shadow: 0 2px 4px rgba(105, 5, 233, 0.2);
    backdrop-filter: none;
}

/* ===== LAYOUT VARIATION 1: SERVICE-STYLE VERTICAL ===== */
.case-study-card-service-vertical {
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.1) 0%, 
        rgba(192, 112, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(105, 5, 233, 0.2);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.case-study-card-service-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.case-study-card-service-vertical:hover::before {
    left: 100%;
}

.case-study-card-service-vertical:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 60px rgba(105, 5, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(105, 5, 233, 0.4);
}

.case-study-card-service-vertical .card-image {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
}

.case-study-card-service-vertical .card-image img {
    max-width: 80px;
    height: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.case-study-card-service-vertical:hover .card-image img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(105, 5, 233, 0.5));
}

.case-study-card-service-vertical .card-content {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-card-service-vertical .card-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-study-card-service-vertical .card-subtitle {
    color: rgba(192, 112, 255, 0.9);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.case-study-card-service-vertical .card-summary {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.case-study-card-service-vertical .industry-badge {
    background: rgba(192, 112, 255, 0.2);
    color: rgba(192, 112, 255, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(192, 112, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 1rem;
}

/* ===== LAYOUT VARIATION 2: SERVICE-STYLE HORIZONTAL ===== */
.case-study-card-service-horizontal {
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.1) 0%, 
        rgba(192, 112, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(105, 5, 233, 0.2);
    border-radius: 18px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.case-study-card-service-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.case-study-card-service-horizontal:hover::before {
    left: 100%;
}

.case-study-card-service-horizontal:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 60px rgba(105, 5, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(105, 5, 233, 0.4);
}

.case-study-card-service-horizontal .card-image {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 80px;
    width: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.case-study-card-service-horizontal .card-image img {
    max-width: 80px;
    height: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.case-study-card-service-horizontal:hover .card-image img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(105, 5, 233, 0.5));
}

.case-study-card-service-horizontal .card-content {
    background: transparent;
    border: none;
    padding: 0 0 0 2rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.case-study-card-service-horizontal .card-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-study-card-service-horizontal .card-subtitle {
    color: rgba(192, 112, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.case-study-card-service-horizontal .card-summary {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.case-study-card-service-horizontal .industry-badge {
    background: rgba(192, 112, 255, 0.2);
    color: rgba(192, 112, 255, 0.95);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(192, 112, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-bottom: 1rem;
}

/* ===== LAYOUT VARIATION 3: COMPACT GRID ===== */
.case-study-card-compact {
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.1) 0%, 
        rgba(192, 112, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(25px) saturate(120%);
    -webkit-backdrop-filter: blur(25px) saturate(120%);
    border: 1px solid rgba(105, 5, 233, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.case-study-card-compact:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 40px rgba(105, 5, 233, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(105, 5, 233, 0.4);
}

.case-study-card-compact .card-image {
    height: 60px;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-card-compact .card-image img {
    max-width: 40px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.case-study-card-compact:hover .card-image img {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(105, 5, 233, 0.5));
}

.case-study-card-compact .card-content {
    background: transparent;
    border: none;
    padding: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-card-compact .card-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.case-study-card-compact .card-subtitle {
    color: rgba(192, 112, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.case-study-card-compact .card-summary {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    flex-grow: 1;
}

.case-study-card-compact .industry-badge {
    background: rgba(192, 112, 255, 0.2);
    color: rgba(192, 112, 255, 0.95);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(192, 112, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: inline-block;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* ===== LAYOUT VARIATION 4: FEATURE HIGHLIGHT ===== */
.case-study-card-feature {
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.15) 0%, 
        rgba(192, 112, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 2px solid rgba(105, 5, 233, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.case-study-card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(105, 5, 233, 0.05) 0%, 
        rgba(192, 112, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    z-index: 1;
}

.case-study-card-feature:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 80px rgba(105, 5, 233, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(105, 5, 233, 0.5);
}

.case-study-card-feature .card-image {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    border-radius: 16px;
    overflow: hidden;
}

.case-study-card-feature .card-image img {
    max-width: 60px;
    height: auto;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.case-study-card-feature:hover .card-image img {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(105, 5, 233, 0.6));
}

.case-study-card-feature .card-content {
    background: transparent;
    border: none;
    padding: 0;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.case-study-card-feature .card-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.case-study-card-feature .card-subtitle {
    color: rgba(192, 112, 255, 0.95);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-study-card-feature .card-summary {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-study-card-feature .industry-badge {
    background: linear-gradient(135deg, 
        rgba(192, 112, 255, 0.3) 0%, 
        rgba(105, 5, 233, 0.2) 100%);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(192, 112, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Responsive adjustments for case study cards */
@media (max-width: 768px) {
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
    
    .card-summary {
        font-size: 0.9rem;
    }
    
    .cta-text {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    /* Responsive adjustments for new layouts */
    .case-study-card-service-horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .case-study-card-service-horizontal .card-content {
        padding: 1rem 0 0 0;
    }
    
    .case-study-card-service-horizontal .card-image {
        width: 100%;
        height: 100px;
        margin-bottom: 1rem;
    }
}
