/* Global Styles */
:root {
    --primary-color: #6366f1;
    /* Indigo */
    --secondary-color: #a855f7;
    /* Purple */
    --accent-color: #ec4899;
    /* Pink */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-light-50 {
    color: var(--text-muted);
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-darker {
    background-color: var(--bg-darker);
}

.section-black {
    background-color: #000000;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Navbar */
.navbar {
    padding: 0.2rem 0;
    /* Minimal padding to allow larger logo */
    transition: all 0.4s ease;
    background: #ffffff;
    /* White background */
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.2rem 0;
    /* Minimal padding on scroll */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Darker border for white bg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Constrain Logo Height in Navbar */
.navbar-brand img {
    height: 90px;
    /* Explicit height */
    max-height: 90px;
    /* Further increased logo size */
    width: auto;
    object-fit: contain;
}

.nav-link {
    font-weight: 600;
    /* Slightly bolder for dark on white */
    margin-right: 1.5rem;
    color: var(--bg-dark) !important;
    /* Dark text */
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Navbar Toggler - Dark for white bg */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(15, 23, 42, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border-color: rgba(15, 23, 42, 0.1);
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
}

.dropdown-item {
    color: var(--bg-dark);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), transparent);
    color: var(--primary-color);
    padding-left: 1.8rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: radial-gradient(circle at top right, #1e1b4b, transparent 40%),
        radial-gradient(circle at bottom left, #312e81, transparent 40%),
        var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/hero_bg.png') no-repeat center center/cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Particles Container */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Title Animations */
/* Title Animations */
.section-title-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
    padding: 15px 30px;
    /* Space for the circle */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-title.visible,
.section-title-wrapper.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

/* Drawing Circle Animation */
.title-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.title-circle rect {
    fill: none;
    stroke: var(--secondary-color);
    stroke-width: 3;
    stroke-linecap: round;
    width: 100%;
    height: 100%;
    rx: 50;
    ry: 50;

    /* Animation setup */
    /* Animation setup */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.5s ease-out 0.3s;
}

.section-title-wrapper.visible .title-circle rect {
    stroke-dashoffset: 0;
}

/* Clients Grid Section */
.client-logo-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.client-logo-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.client-logo-box i {
    font-size: 2.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.client-logo-box:hover i {
    color: var(--text-white);
}

/* Stats Counter */
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Process Section */
.process-video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.process-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
    cursor: pointer;
}

.process-video-container:hover .play-btn {
    transform: scale(1.1);
    background: var(--primary-color);
}

.process-step {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    border-radius: 0 10px 10px 0;
}

/* Animations Triggered on Scroll */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Services Cards - Attractive Glassmorphism */
.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.service-card.featured {
    border: 1px solid rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.05);
}

.glow-effect {
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
    transition: box-shadow 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 80px rgba(99, 102, 241, 0.3);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* Footer & Buttons */
.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) rotate(360deg);
    border-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Partner Scrolling Logos */
.footer-logo-white {
    filter: brightness(0) invert(1);
}

footer img[alt*="Innovation"] {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.partner-scroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.partner-scroll-container::before,
.partner-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partner-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker), transparent);
}

.partner-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker), transparent);
}

.partner-scroll-track {
    display: inline-flex;
    gap: 2rem;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.scroll-left-to-right {
    animation-name: scroll-right;
    animation-duration: 40s;
}

.scroll-right-to-left {
    animation-name: scroll-left;
    animation-duration: 40s;
}

.partner-logo {
    flex-shrink: 0;
    width: 300px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Removed grayscale filter */
    transition: all 0.3s ease;
    /* opacity: 0.7; Removed opacity to show full color by default or maybe slight opacity? keeping it clear */
}

.partner-logo:hover img {
    /* filter: grayscale(0%) brightness(1); Redundant now */
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .partner-logo {
        width: 200px;
        height: 110px;
    }

    .scroll-left-to-right,
    .scroll-right-to-left {
        animation-duration: 30s;
    }

    /* Mobile Typography & Layout Fixes */
    .hero-section .display-3 {
        font-size: 2.5rem;
        /* Smaller H1 */
    }

    .hero-section .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-section .d-flex {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-section .btn {
        width: 100%;
        /* Full width buttons */
        max-width: 300px;
        /* Max width for aesthetics */
        margin-bottom: 1rem;
        padding: 0.8rem 2rem;
        border-radius: 50px !important;
        /* Force pill shape */
        height: auto !important;
        /* Allow height to adjust */
        white-space: normal;
        /* Allow text wrapping if needed */
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Mediagarh Design Replication Styles */
.title-underline {
    position: relative;
    display: inline-block;
}

.title-underline::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="10" viewBox="0 0 200 10" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.00025 7.99997C35.0934 3.73687 90.0631 -1.45891 198.001 2.00001" stroke="%233b82f6" stroke-width="3" stroke-linecap="round"/></svg>') no-repeat center center/contain;
    opacity: 0.8;
}

.leadership-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    max-height: 400px;
}

.values-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.value-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-badge:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

.team-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    margin: 5px;
    transition: all 0.3s ease;
}

.team-filter-btn.active,
.team-filter-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.team-card {
    text-align: center;
    margin-bottom: 30px;
}

.team-card img {
    width: 100%;
    border-radius: 8px;
    /* Clean rectangular look */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.team-card:hover img {
    transform: scale(1.02);
}

.team-card h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.bold-frame {
    border: 10px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.5s ease;
}

.bold-frame:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}


/* Floating Contact Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-call {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Pulse Animation for buttons */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.btn-whatsapp {
    animation: pulse-glow 2s infinite;
}

/* Tooltip on Hover */
.floating-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    transform: translateX(10px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }


}

/* Brochure Button & Modal */
.brochure-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.brochure-btn span {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: white;
}

.brochure-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.brochure-btn::before {
    content: "View Brochure";
    position: absolute;
    left: 70px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    transform: translateX(-10px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brochure-btn:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.brochure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brochure-modal.show {
    display: flex;
    opacity: 1;
}

.brochure-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

.brochure-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.close-brochure {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 35px;
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s;
    outline: none;
}

.close-brochure:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .brochure-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }

    .brochure-btn span {
        font-size: 24px;
    }

    .close-brochure {
        right: 0;
        top: -45px;
    }
}

/* =========================================
   Redesigned Our Work Page Styles
   ========================================= */

.work-section-container {
    position: relative;
    padding: 2rem 0;
    overflow: hidden;
}

/* Background Elements */
.bg-gradient-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    animation: float-shape 20s infinite alternate;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    border-radius: 50%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 20%;
    right: -5%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 40%;
    left: 20%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.1;
}

@keyframes float-shape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

/* Timeline/List Structure */
.work-timeline-line {
    position: absolute;
    left: 50%;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--secondary-color), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 1;
}

.work-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8rem;
    position: relative;
    z-index: 2;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Visual Side (Icon/Blob) */
.work-visual {
    width: 50%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.work-icon-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-white);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
    animation: blob-bounce 8s infinite ease-in-out;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

/* Distinctive gradients for different items */
.work-item:nth-child(1) .work-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
}

.work-item:nth-child(2) .work-icon-wrapper {
    background: linear-gradient(135deg, #0ea5e9, #3b82f6);
    animation-delay: -1s;
}

.work-item:nth-child(3) .work-icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-color), #d946ef);
    animation-delay: -2s;
}

.work-item:nth-child(4) .work-icon-wrapper {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation-delay: -3s;
}

.work-item:nth-child(5) .work-icon-wrapper {
    background: linear-gradient(135deg, #10b981, #059669);
    animation-delay: -4s;
}

.work-item:hover .work-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.3);
}

@keyframes blob-bounce {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: translateY(0);
    }

    33% {
        border-radius: 70% 30% 30% 70% / 70% 30% 70% 30%;
        transform: translateY(-15px);
    }

    66% {
        border-radius: 30% 30% 70% 70% / 30% 70% 70% 30%;
        transform: translateY(5px);
    }
}

/* Badge/Icon floating around */
.floating-badge {
    position: absolute;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    top: 10%;
    right: 20%;
    animation: float-badge 4s infinite ease-in-out;
}

.work-item:nth-child(even) .floating-badge {
    left: 20%;
    right: auto;
    animation-delay: 1s;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Content Side */
.work-content-wrapper {
    width: 50%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.work-content-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    max-width: 550px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.work-content-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.work-item:nth-child(3) .work-content-card::before {
    background: var(--secondary-color);
}

.work-item:nth-child(5) .work-content-card::before {
    background: #10b981;
}

.work-content-card:hover::before {
    opacity: 1;
}

.work-number-bg {
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 0.8;
    pointer-events: none;
    font-family: var(--font-heading);
    transition: transform 0.4s ease;
}

.work-content-card:hover .work-number-bg {
    transform: scale(1.1) rotate(-5deg);
    color: rgba(255, 255, 255, 0.05);
}

.work-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.work-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

.work-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.work-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.work-btn {
    margin-top: 2rem;
    padding: 10px 25px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.work-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.work-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .work-timeline-line {
        display: none;
        /* Hide line on tablet/mobile */
    }

    .work-item,
    .work-item:nth-child(even) {
        flex-direction: column;
        margin-bottom: 4rem;
    }

    .work-visual,
    .work-content-wrapper {
        width: 100%;
        padding: 0 10px;
    }

    .work-visual {
        margin-bottom: 2rem;
        flex-direction: column;
    }

    .floating-badge {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin-top: 1rem;
        animation: none;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
    }

    .work-icon-wrapper {
        width: 140px;
        height: 140px;
        font-size: 3rem;
    }

    .work-content-card {
        padding: 2rem;
    }

    .work-number-bg {
        font-size: 6rem;
    }
}