/* Case Studies Complete CSS - Matching Portfolio Theme */

/* Root Variables - Matching Portfolio Colors */
:root {
    --primary: #7000ff;
    --primary-light: #9a4eff;
    --primary-dark: #5500cc;
    --secondary: #00d4ff;
    --accent: #ff6b6b;
    --background: #0a0a0f;
    --background-light: #1a1a2e;
    --card-dark: rgba(26, 26, 46, 0.8);
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --border-radius: 15px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #7000ff 0%, #9a4eff 100%);
    --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glass Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Primary Text */
.primary-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    margin: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.logo-primary {
    color: var(--primary);
}

.logo-accent {
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

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

/* Background Effects */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: -1;
}

.effect-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.effect-blob.primary {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.effect-blob.secondary {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

/* Hero Section */
.case-studies-hero {
    padding: 10rem 0 6rem;
    position: relative;
    background: linear-gradient(135deg, rgba(112, 0, 255, 0.1) 0%, rgba(154, 78, 255, 0.05) 100%);
    overflow: hidden;
}

.case-studies-hero::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(112,0,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(112, 0, 255, 0.3);
}

/* Case Studies Grid */
.case-studies-grid-section {
    padding: 6rem 0;
    background: var(--background);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

/* Story Cards */
.case-study-story-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-dark);
    position: relative;
}

.case-study-story-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(112, 0, 255, 0.3);
}

.story-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.case-study-story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-content {
    padding: 2rem;
}

.story-category {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-content h3 {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    font-weight: 600;
}

.story-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.story-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-meta i {
    color: var(--primary);
    font-size: 0.85rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(112, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.5);
}

/* Footer */
.footer {
    background: var(--background-light);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.footer-section p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.3rem 0;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(112, 0, 255, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.section-underline {
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .navbar nav {
        margin: 0 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .case-studies-hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-content {
        padding: 1.5rem;
    }
    
    .story-content h3 {
        font-size: 1.2rem;
    }
    
    .story-meta {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .case-studies-hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .filter-section {
        padding: 3rem 0;
    }
    
    .case-studies-grid-section {
        padding: 4rem 0;
    }
    
    .story-image {
        height: 180px;
    }
    
    .story-content {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}