/*
Theme Name: AdConnects Editorial Pro
Description: A modern, editorial-style WordPress theme combining minimalist content focus with artistic layered design. Features Pinterest-like modular layouts, soft gradients, and elegant typography.
Version: 2.0
Author: AdConnects Agency
*/

/* ===== CSS RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Editorial Color Palette */
    --primary-color: #2C3E50;
    --secondary-color: #3498DB;
    --accent-color: #E74C3C;
    --soft-purple: #A8B2FF;
    --soft-pink: #FFB2E6;
    --soft-orange: #FFD4B3;
    --soft-green: #B3FFD4;
    --cream: #FFFCF7;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-gray: #495057;
    --text-dark: #212529;
    --text-light: #6C757D;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-editorial: 'Crimson Pro', Georgia, serif;
    
    /* Spacing & Layout */
    --container-max: 1400px;
    --grid-gap: clamp(1rem, 3vw, 2rem);
    --section-padding: clamp(3rem, 8vw, 8rem);
    --card-radius: 24px;
    --soft-radius: 16px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Crimson+Pro:wght@300;400;500;600&display=swap');

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

.lead-text {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.editorial-text {
    font-family: var(--font-editorial);
    font-size: clamp(1.125rem, 2.2vw, 1.25rem);
    line-height: 1.8;
}

/* ===== LAYOUT CONTAINERS ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.editorial-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(2rem, 6vw, 4rem);
}

.narrow-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 2rem);
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 252, 247, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.main-navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: var(--transition-smooth);
    position: relative;
}

.main-navigation a:hover {
    color: var(--secondary-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--soft-purple));
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    margin: 4px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, 
        var(--cream) 0%, 
        rgba(255, 178, 230, 0.08) 30%, 
        rgba(168, 178, 255, 0.06) 70%, 
        var(--cream) 100%);
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.floating-shape {
    position: absolute;
    background: linear-gradient(45deg, 
        rgba(168, 178, 255, 0.3), 
        rgba(255, 178, 230, 0.2));
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-30px) rotate(3deg); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--soft-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--soft-purple));
    color: white;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--medium-gray);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== MODULAR GRID SYSTEM ===== */
.modular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--grid-gap);
    margin: var(--section-padding) 0;
}

.grid-masonry {
    columns: clamp(2, 4vw, 4);
    column-gap: var(--grid-gap);
}

.grid-item {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--grid-gap);
    break-inside: avoid;
}

/* ===== CARDS ===== */
.card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    position: relative;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.card-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, 
        var(--light-gray) 0%, 
        rgba(255, 212, 179, 0.1) 50%, 
        var(--light-gray) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--card-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--secondary-color), 
        var(--soft-purple), 
        var(--soft-pink));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--soft-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-description {
    font-family: var(--font-editorial);
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-image {
    position: relative;
    z-index: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--card-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    padding: var(--section-padding) 0;
    background: var(--light-gray);
}

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

.portfolio-item {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    group: cursor-pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portfolio-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== IMAGE FLOW SECTION - FLOWERS MAGAZINE INSPIRED ===== */
.image-flow-section {
    padding: calc(var(--section-padding) * 1.5) 0;
    background: linear-gradient(135deg, 
        var(--cream) 0%, 
        rgba(255, 178, 230, 0.08) 30%, 
        rgba(168, 178, 255, 0.06) 70%, 
        var(--cream) 100%);
    overflow: hidden;
    position: relative;
}

.flow-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.flow-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--soft-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flow-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-light);
    font-style: italic;
}

.image-flow-container {
    position: relative;
    min-height: 800px;
    margin: 0 auto;
    max-width: 1400px;
}

/* Organic Background Shapes */
.organic-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.organic-shape {
    position: absolute;
    border-radius: 50% 30% 60% 40%;
    opacity: 0.4;
    animation: organicFloat 20s infinite ease-in-out;
}

.organic-shape.shape-1 {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, 
        rgba(255, 178, 230, 0.3), 
        rgba(168, 178, 255, 0.2));
    top: 5%;
    left: 10%;
    animation-delay: 0s;
}

.organic-shape.shape-2 {
    width: 250px;
    height: 350px;
    background: linear-gradient(135deg, 
        rgba(255, 212, 179, 0.3), 
        rgba(179, 255, 212, 0.2));
    top: 30%;
    right: 8%;
    animation-delay: 5s;
}

.organic-shape.shape-3 {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, 
        rgba(168, 178, 255, 0.3), 
        rgba(255, 178, 230, 0.2));
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.organic-shape.shape-4 {
    width: 180px;
    height: 240px;
    background: linear-gradient(135deg, 
        rgba(179, 255, 212, 0.3), 
        rgba(255, 212, 179, 0.2));
    bottom: 5%;
    right: 25%;
    animation-delay: 15s;
}

@keyframes organicFloat {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 50% 30% 60% 40%;
    }
    25% { 
        transform: translate(20px, -30px) rotate(5deg) scale(1.05);
        border-radius: 40% 60% 30% 50%;
    }
    50% { 
        transform: translate(-15px, -20px) rotate(-3deg) scale(0.95);
        border-radius: 60% 40% 50% 30%;
    }
    75% { 
        transform: translate(25px, 15px) rotate(7deg) scale(1.1);
        border-radius: 30% 50% 40% 60%;
    }
}

/* Flowing Images */
.flowing-images {
    position: relative;
    z-index: 5;
    height: 800px;
}

.flow-image-item {
    position: absolute;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.flow-image-wrapper {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.flow-image-item:hover .flow-image-wrapper {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

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

.flow-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.flow-image-item:hover .flow-overlay {
    transform: translateY(0);
}

.flow-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    display: block;
}

.flow-project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Individual Image Positioning - Magazine Style */
.flow-image-item.item-1 {
    top: 0;
    left: 5%;
    width: 280px;
    height: 350px;
    transform: rotate(-3deg);
    z-index: 6;
}

.flow-image-item.item-2 {
    top: 50px;
    right: 15%;
    width: 220px;
    height: 280px;
    transform: rotate(5deg);
    z-index: 7;
}

.flow-image-item.item-3 {
    top: 150px;
    left: 25%;
    width: 300px;
    height: 200px;
    transform: rotate(-2deg);
    z-index: 8;
}

.flow-image-item.item-4 {
    top: 100px;
    right: 35%;
    width: 180px;
    height: 240px;
    transform: rotate(7deg);
    z-index: 5;
}

.flow-image-item.item-5 {
    top: 400px;
    left: 8%;
    width: 250px;
    height: 180px;
    transform: rotate(4deg);
    z-index: 6;
}

.flow-image-item.item-6 {
    top: 350px;
    right: 10%;
    width: 280px;
    height: 320px;
    transform: rotate(-6deg);
    z-index: 7;
}

.flow-image-item.item-7 {
    top: 500px;
    left: 35%;
    width: 200px;
    height: 260px;
    transform: rotate(3deg);
    z-index: 5;
}

.flow-image-item.item-8 {
    top: 600px;
    right: 30%;
    width: 240px;
    height: 160px;
    transform: rotate(-4deg);
    z-index: 6;
}

/* Decorative Text Elements */
.flow-text-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.flow-text {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 700;
    opacity: 0.03;
    user-select: none;
}

.creative-text {
    font-size: clamp(4rem, 12vw, 8rem);
    top: 10%;
    left: 50%;
    transform: translateX(-50%) rotate(-15deg);
}

.strategy-text {
    font-size: clamp(3rem, 8vw, 6rem);
    top: 40%;
    right: 5%;
    transform: rotate(20deg);
}

.impact-text {
    font-size: clamp(3.5rem, 10vw, 7rem);
    bottom: 10%;
    left: 10%;
    transform: rotate(-10deg);
}

/* Responsive Design for Image Flow */
@media (max-width: 1200px) {
    .image-flow-container {
        max-width: 1000px;
    }
    
    .flow-image-item.item-1 { width: 240px; height: 300px; }
    .flow-image-item.item-2 { width: 180px; height: 240px; }
    .flow-image-item.item-3 { width: 260px; height: 180px; }
    .flow-image-item.item-4 { width: 160px; height: 200px; }
    .flow-image-item.item-5 { width: 220px; height: 160px; }
    .flow-image-item.item-6 { width: 240px; height: 280px; }
    .flow-image-item.item-7 { width: 180px; height: 220px; }
    .flow-image-item.item-8 { width: 200px; height: 140px; }
}

@media (max-width: 768px) {
    .image-flow-section {
        padding: calc(var(--section-padding) * 0.8) 0;
    }
    
    .flowing-images {
        height: 600px;
    }
    
    .flow-image-item {
        transform: none !important;
    }
    
    .flow-image-item.item-1 { 
        top: 0; left: 5%; width: 45%; height: 200px; 
    }
    .flow-image-item.item-2 { 
        top: 0; right: 5%; width: 40%; height: 180px; 
    }
    .flow-image-item.item-3 { 
        top: 150px; left: 10%; width: 50%; height: 160px; 
    }
    .flow-image-item.item-4 { 
        top: 150px; right: 8%; width: 35%; height: 180px; 
    }
    .flow-image-item.item-5 { 
        top: 300px; left: 5%; width: 42%; height: 140px; 
    }
    .flow-image-item.item-6 { 
        top: 300px; right: 5%; width: 45%; height: 200px; 
    }
    .flow-image-item.item-7 { 
        top: 450px; left: 15%; width: 35%; height: 160px; 
    }
    .flow-image-item.item-8 { 
        top: 450px; right: 10%; width: 40%; height: 120px; 
    }
    
    .organic-shapes {
        display: none;
    }
    
    .flow-text-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .flowing-images {
        height: 500px;
    }
    
    .flow-image-item.item-1 { 
        top: 0; left: 5%; width: 90%; height: 120px; 
    }
    .flow-image-item.item-2 { 
        top: 130px; left: 5%; width: 90%; height: 100px; 
    }
    .flow-image-item.item-3 { 
        top: 240px; left: 5%; width: 90%; height: 110px; 
    }
    .flow-image-item.item-4 { 
        top: 360px; left: 5%; width: 90%; height: 100px; 
    }
    .flow-image-item.item-5,
    .flow-image-item.item-6,
    .flow-image-item.item-7,
    .flow-image-item.item-8 {
        display: none;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    color: white;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--card-radius);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: var(--soft-radius);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--soft-radius) var(--soft-radius);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .card-content,
    .service-card {
        padding: 1.5rem;
    }
    
    .floating-shapes {
        display: none;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.hidden { display: none; }
.visible { display: block; }

/* ===== WORK PAGE STYLES ===== */

/* Work Hero Section */
.work-hero-section {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: linear-gradient(135deg, 
        var(--cream) 0%, 
        rgba(255, 178, 230, 0.05) 30%, 
        rgba(168, 178, 255, 0.04) 70%, 
        var(--cream) 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.work-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.work-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.work-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.work-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Phone in Hero */
.work-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-phone {
    position: relative;
    animation: floatPhone 6s ease-in-out infinite;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 40px;
    padding: 20px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #34495e;
    border-radius: 3px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.scrolling-content {
    height: 100%;
    position: relative;
}

.scroll-item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s ease-in-out;
}

.scroll-item.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-project {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.scroll-project h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.scroll-project p {
    opacity: 0.8;
    font-size: 1rem;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

/* Work Decorative Elements */
.work-decorative {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.work-shape {
    position: absolute;
    border-radius: 50% 30% 60% 40%;
    opacity: 0.1;
    animation: workShapeFloat 15s infinite ease-in-out;
}

.work-shape.shape-1 {
    width: 200px;
    height: 250px;
    background: var(--secondary-color);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.work-shape.shape-2 {
    width: 150px;
    height: 200px;
    background: var(--soft-purple);
    bottom: 20%;
    left: 5%;
    animation-delay: 5s;
}

.work-shape.shape-3 {
    width: 100px;
    height: 150px;
    background: var(--soft-orange);
    top: 50%;
    left: 80%;
    animation-delay: 10s;
}

@keyframes workShapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

/* Phone Scroll Showcase Section */
.phone-scroll-section {
    padding: calc(var(--section-padding) * 1.5) 0;
    background: var(--light-gray);
}

.phone-scroll-header {
    text-align: center;
    margin-bottom: 5rem;
}

.phone-showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.phone-showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.phone-showcase-item.reverse {
    direction: rtl;
}

.phone-showcase-item.reverse > * {
    direction: ltr;
}

/* Phone Mockup Styles */
.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-device {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 50px;
    padding: 25px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-smooth);
}

.phone-showcase-item:hover .phone-device {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone-notch {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 15px;
    z-index: 10;
}

.phone-display {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

.project-screens {
    height: 100%;
    position: relative;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 1s ease-in-out;
}

.screen.active {
    opacity: 1;
    transform: translateX(0);
}

.screen-content {
    height: 100%;
    padding: 2rem 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
}

/* Screen Content Styles */
.project-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.screen-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.screen-content p {
    opacity: 0.8;
    margin-bottom: 2rem;
}

.screen-elements {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.element-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    width: 80%;
}

.element-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    align-self: flex-end;
}

.element-line {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    width: 60%;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-height: 80px;
}

/* E-commerce Elements */
.ecommerce-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.search-bar {
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    flex: 1;
    margin-right: 1rem;
}

.cart-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    flex: 1;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-height: 120px;
}

/* Checkout Form */
.checkout-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.form-field.short {
    height: 35px;
}

.checkout-button {
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    margin-top: auto;
}

/* App Interface Elements */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.notification-dot {
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    position: absolute;
    top: 0;
    right: 0;
}

.dashboard-widgets {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.widget.large {
    height: 120px;
}

.widget.small {
    height: 80px;
}

.widget-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Analytics Elements */
.analytics-charts {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chart-header {
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.line-chart {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    position: relative;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.stat-box {
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Project Details */
.project-details {
    padding: 2rem 0;
}

.project-category {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    display: block;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.metric {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-link {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Work CTA Section */
.work-cta-section {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.work-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design for Work Page */
@media (max-width: 1200px) {
    .phone-device {
        width: 280px;
        height: 560px;
    }
    
    .project-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .work-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .work-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
        padding: 15px;
    }
    
    .phone-device {
        width: 260px;
        height: 520px;
        padding: 20px;
    }
    
    .phone-showcase-item {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .phone-showcase-item.reverse {
        direction: ltr;
    }
    
    .project-title {
        font-size: 1.8rem;
    }
    
    .project-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        width: 200px;
        height: 400px;
        padding: 12px;
    }
    
    .phone-device {
        width: 220px;
        height: 440px;
        padding: 15px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .work-hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Responsive Design for Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: calc(var(--section-padding) * 0.8) 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .cta-button {
        max-width: 250px;
        padding: 1rem 1.5rem;
    }
}

/* ===== CONTACT PAGE STYLES ===== */

/* Contact Hero Section */
.contact-hero-section {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: linear-gradient(135deg, 
        var(--cream) 0%, 
        rgba(255, 178, 230, 0.05) 30%, 
        rgba(168, 178, 255, 0.04) 70%, 
        var(--cream) 100%);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.contact-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.contact-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.contact-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contact-quick-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.quick-info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: white;
}

/* Contact Illustration */
.contact-illustration {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.floating-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.floating-card.card-1 {
    top: 0;
    left: 0;
    animation: floatCard1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 0;
    right: 0;
    animation: floatCard2 6s ease-in-out infinite 2s;
}

.floating-card.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: floatCard3 6s ease-in-out infinite 4s;
}

.card-content {
    text-align: center;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -20px) rotate(5deg); }
    66% { transform: translate(-5px, -10px) rotate(-3deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, -15px) rotate(-5deg); }
    66% { transform: translate(10px, -25px) rotate(7deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateX(-50%) translate(0, 0) rotate(0deg); }
    33% { transform: translateX(-50%) translate(15px, -10px) rotate(3deg); }
    66% { transform: translateX(-50%) translate(-10px, -20px) rotate(-5deg); }
}

/* Contact Decorative Elements */
.contact-decorative {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.contact-shape {
    position: absolute;
    border-radius: 50% 30% 60% 40%;
    opacity: 0.1;
    animation: contactShapeFloat 20s infinite ease-in-out;
}

.contact-shape.shape-1 {
    width: 200px;
    height: 250px;
    background: var(--secondary-color);
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.contact-shape.shape-2 {
    width: 150px;
    height: 200px;
    background: var(--soft-purple);
    bottom: 20%;
    left: 5%;
    animation-delay: 7s;
}

.contact-shape.shape-3 {
    width: 100px;
    height: 150px;
    background: var(--soft-orange);
    top: 60%;
    left: 75%;
    animation-delay: 14s;
}

@keyframes contactShapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -30px) rotate(5deg); }
    66% { transform: translate(-15px, 20px) rotate(-3deg); }
}

/* Contact Main Section */
.contact-main-section {
    padding: calc(var(--section-padding) * 1.5) 0;
    background: var(--light-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.form-header {
    margin-bottom: 3rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.form-subtitle {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input,
.form-select,
.form-textarea {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-dark);
    background: white;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--font-body);
}

.form-submit-btn {
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-submit-btn i {
    transition: var(--transition-smooth);
}

.form-submit-btn:hover i {
    transform: translateX(5px);
}

/* Contact Info Container */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.info-card-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-card-subtitle {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(52, 73, 94, 0.03);
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.contact-method:hover {
    background: rgba(52, 73, 94, 0.06);
    transform: translateX(5px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.method-content p {
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.method-content small {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Social Connect */
.social-connect h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.contact-faq {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.contact-faq h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Contact CTA Section */
.contact-cta-section {
    padding: calc(var(--section-padding) * 1.2) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.cta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Design for Contact Page */
@media (max-width: 1200px) {
    .contact-grid {
        gap: 3rem;
    }
    
    .contact-form-container {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-title {
        font-size: 2rem;
    }
    
    .contact-illustration {
        height: 300px;
    }
    
    .floating-card {
        width: 100px;
        height: 100px;
    }
    
    .card-icon {
        font-size: 1.5rem;
    }
    
    .cta-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero-section {
        min-height: 70vh;
    }
    
    .contact-form-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-info-card {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .contact-faq {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .quick-info-item {
        padding: 0.8rem;
    }
    
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-method {
        padding: 1rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Portfolio CTA Button */
.portfolio-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    position: relative;
    overflow: hidden;
}

.btn-arrow {
    margin-left: 0.8rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-large:hover .btn-arrow {
    transform: translateX(5px);
}

/* Single Team Member Styles */
.team-single {
    max-width: 1000px;
    margin: 0 auto;
}

.team-member-featured {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    background: white;
    padding: 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.team-member-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--soft-purple));
}

.member-image-large {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, rgba(168, 178, 255, 0.1), rgba(255, 178, 230, 0.1));
}

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

.member-image-large:hover img {
    transform: scale(1.05);
}

.member-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.member-image-large:hover .member-overlay {
    opacity: 1;
    transform: translateY(0);
}

.member-quote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

.member-info-large {
    padding: 1rem 0;
}

.member-name-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-role-large {
    font-size: 1.3rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-bio-large {
    margin-bottom: 3rem;
}

.member-bio-large p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.member-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    border-top: 2px solid #f1f3f4;
    padding-top: 2rem;
}

.achievement {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(168, 178, 255, 0.05), rgba(255, 178, 230, 0.03));
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.achievement:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.achievement-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Design for Team Section */
@media (max-width: 1024px) {
    .team-member-featured {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2.5rem;
        text-align: center;
    }
    
    .member-achievements {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .team-member-featured {
        padding: 2rem;
        gap: 2rem;
        margin: 0 1rem;
    }
    
    .member-name-large {
        font-size: 2rem;
    }
    
    .member-role-large {
        font-size: 1.1rem;
    }
    
    .member-bio-large p {
        font-size: 1rem;
    }
    
    .member-achievements {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .achievement {
        padding: 1rem;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .portfolio-cta {
        margin-top: 3rem;
        padding: 1.5rem 0;
    }
    
    .btn-large {
        font-size: 1.1rem;
        padding: 1rem 2.5rem;
    }
}

@media (max-width: 480px) {
    .team-member-featured {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .member-name-large {
        font-size: 1.8rem;
    }
    
    .member-role-large {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .member-bio-large {
        margin-bottom: 2rem;
    }
    
    .member-bio-large p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .member-achievements {
        padding-top: 1.5rem;
    }
    
    .achievement-number {
        font-size: 1.8rem;
    }
    
    .achievement-label {
        font-size: 0.85rem;
    }
    
    .btn-large {
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
}

/* Video Background Showcase Section */
.video-showcase-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(44, 62, 80, 0.8) 0%,
        rgba(52, 152, 219, 0.6) 50%,
        rgba(155, 89, 182, 0.7) 100%
    );
    z-index: 2;
}

.video-showcase-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 4rem 0;
}

.showcase-header {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.showcase-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Floating Work Gallery */
.floating-work-gallery {
    position: relative;
    height: 600px;
    margin: 4rem 0;
}

.floating-work-item {
    position: absolute;
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: floatWorkItem 20s infinite ease-in-out;
}

.floating-work-item:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.work-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
    padding: 0.5rem;
}

.work-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.work-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 15px;
}

.floating-work-item:hover .work-hover-overlay {
    opacity: 1;
}

.work-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.work-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.work-stats {
    display: flex;
    gap: 1rem;
}

.work-stats .stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Floating Work Item Positions */
.floating-work-item.item-1 {
    top: 10%;
    left: 5%;
    width: 280px;
    height: 200px;
    animation-delay: 0s;
}

.floating-work-item.item-2 {
    top: 5%;
    right: 15%;
    width: 240px;
    height: 180px;
    animation-delay: -3s;
}

.floating-work-item.item-3 {
    top: 35%;
    left: 15%;
    width: 200px;
    height: 160px;
    animation-delay: -6s;
}

.floating-work-item.item-4 {
    top: 25%;
    right: 5%;
    width: 260px;
    height: 190px;
    animation-delay: -9s;
}

.floating-work-item.item-5 {
    bottom: 20%;
    left: 10%;
    width: 220px;
    height: 170px;
    animation-delay: -12s;
}

.floating-work-item.item-6 {
    bottom: 15%;
    right: 20%;
    width: 250px;
    height: 180px;
    animation-delay: -15s;
}

@keyframes floatWorkItem {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(1deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(0.5deg); }
}

/* Process Indicators */
.process-indicators {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.process-step.active,
.process-step:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.process-step.active .step-icon,
.process-step:hover .step-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.step-label {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Showcase Decoratives */
.showcase-decoratives {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.showcase-decoratives .floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    animation: showcaseFloat 25s infinite ease-in-out;
}

.showcase-decoratives .shape-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 20%;
    left: 80%;
    animation-delay: -5s;
}

.showcase-decoratives .shape-triangle {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 60%;
    left: 5%;
    animation-delay: -10s;
}

.showcase-decoratives .shape-square {
    width: 50px;
    height: 50px;
    top: 80%;
    right: 10%;
    animation-delay: -15s;
    transform: rotate(45deg);
}

@keyframes showcaseFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-30px) rotate(90deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.4; }
    75% { transform: translateY(-40px) rotate(270deg); opacity: 0.5; }
}

/* Responsive Design for Video Showcase */
@media (max-width: 1200px) {
    .floating-work-gallery {
        height: 500px;
    }
    
    .floating-work-item.item-1 { width: 240px; height: 170px; }
    .floating-work-item.item-2 { width: 200px; height: 150px; }
    .floating-work-item.item-3 { width: 180px; height: 140px; }
    .floating-work-item.item-4 { width: 220px; height: 160px; }
    .floating-work-item.item-5 { width: 190px; height: 150px; }
    .floating-work-item.item-6 { width: 210px; height: 160px; }
    
    .process-indicators {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .video-showcase-section {
        min-height: 80vh;
    }
    
    .floating-work-gallery {
        height: 400px;
    }
    
    .floating-work-item {
        animation: none;
    }
    
    .floating-work-item.item-1 { 
        top: 5%; left: 5%; 
        width: 150px; height: 120px; 
    }
    .floating-work-item.item-2 { 
        top: 5%; right: 5%; 
        width: 130px; height: 100px; 
    }
    .floating-work-item.item-3 { 
        top: 35%; left: 10%; 
        width: 120px; height: 100px; 
    }
    .floating-work-item.item-4 { 
        top: 35%; right: 10%; 
        width: 140px; height: 110px; 
    }
    .floating-work-item.item-5 { 
        bottom: 15%; left: 5%; 
        width: 130px; height: 110px; 
    }
    .floating-work-item.item-6 { 
        bottom: 15%; right: 5%; 
        width: 140px; height: 120px; 
    }
    
    .process-indicators {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .floating-work-gallery {
        height: 300px;
        margin: 2rem 0;
    }
    
    .floating-work-item {
        width: 100px !important;
        height: 80px !important;
    }
    
    .work-hover-overlay {
        padding: 1rem;
    }
    
    .work-title {
        font-size: 1rem;
    }
    
    .work-description {
        font-size: 0.8rem;
    }
    
    .process-indicators {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        gap: 1rem;
    }
}

/* Enhanced Video Showcase Animations */
.video-showcase-section.showcase-visible .showcase-title {
    animation: titleFadeIn 1s ease-out;
}

.video-showcase-section.showcase-visible .showcase-subtitle {
    animation: subtitleSlideUp 1s ease-out 0.3s both;
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-work-item.item-visible {
    animation: itemFadeIn 0.8s ease-out both;
}

@keyframes itemFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Step Highlighting */
.floating-work-item.step-highlight {
    animation: pulseHighlight 2s ease-in-out;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
    transform: scale(1.1);
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(52, 152, 219, 0.8);
    }
}

/* Process Step Active State Enhancement */
.process-step.active .step-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
    }
}

/* Video Background Fallback Styling */
.video-background.fallback {
    background: 
        linear-gradient(135deg, 
            rgba(44, 62, 80, 0.9) 0%,
            rgba(52, 152, 219, 0.7) 50%,
            rgba(155, 89, 182, 0.8) 100%
        ),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') #2c3e50;
    background-size: cover, 50px 50px, cover;
}

/* Enhanced Floating Work Item Interactions */
.floating-work-item:hover .work-image-container {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.floating-work-item:hover .work-image-container img {
    transform: scale(1.05);
}

/* Smooth transitions for work items */
.floating-work-item * {
    transition: var(--transition-smooth);
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .floating-work-item.step-highlight {
        animation: mobileHighlight 1.5s ease-in-out;
        transform: scale(1.05);
    }
    
    @keyframes mobileHighlight {
        0%, 100% {
            box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
        }
        50% {
            box-shadow: 0 15px 35px rgba(52, 152, 219, 0.6);
        }
    }
}

/* Loading States to Prevent Glitching */
.theme-loading {
    overflow: hidden;
}

.theme-loading * {
    animation-play-state: paused !important;
    transition: none !important;
}

.theme-loaded .floating-work-item,
.theme-loaded .floating-shape,
.theme-loaded .organic-shape {
    animation-play-state: running;
}

/* Improved Image Loading */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Prevent Layout Shift During Loading */
.portfolio-item img,
.work-image-container img,
.member-image-large img {
    min-height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    object-fit: cover;
}

/* Smooth Transitions for All Interactive Elements */
.btn,
.card,
.service-card,
.portfolio-item,
.floating-work-item,
.team-member-featured {
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    will-change: transform;
}

/* Optimize Animations for Better Performance */
.floating-work-item {
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
}

.video-background video {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduce Motion for Users Who Prefer It */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-work-item,
    .floating-shape,
    .organic-shape {
        animation: none !important;
    }
}

/* Fix for Mobile Glitches */
@media (max-width: 768px) {
    .video-showcase-section {
        overflow: hidden;
    }
    
    .floating-work-item {
        transform: translateZ(0);
        will-change: auto;
    }
    
    /* Disable complex animations on mobile for better performance */
    .floating-work-item {
        animation: none;
    }
    
    .process-step.active .step-icon {
        animation: none;
    }
}

/* Intersection Observer Fallback */
.no-js .animate-fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner for Images */
.image-loading {
    position: relative;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State for Missing Images */
img[src=""],
img:not([src]),
img[src*="placeholder"] {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

img[src=""]::after,
img:not([src])::after {
    content: "📷";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
}