/* --- Banner with Continuous Zoom --- */
.inner-page-banner { 
    height: 40vh; 
    min-height: 350px; 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background-color: #111; 
    color: white; 
    text-align: center; 
    padding-top: 80px; 
    overflow: hidden;
}
/* Continuous subtle zoom on banner */
.inner-page-banner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    animation: bannerZoom 20s infinite alternate linear;
    z-index: 0;
}
@keyframes bannerZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.banner-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 1; }
.banner-content { position: relative; z-index: 2; }
.banner-content h1 { 
    font-size: 4rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, var(--accent-color, #00d2d3), #fff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.breadcrumbs { font-size: 1.1rem; color: #ccc; }
.breadcrumbs a { color: var(--accent-color, #00d2d3); text-decoration: none; transition: 0.3s; }
.breadcrumbs a:hover { color: #fff; text-shadow: 0 0 10px var(--accent-color, #00d2d3); }

/* --- Navbar Image Logo Styles --- */
.nav-logo-img { height: 45px; width: auto; object-fit: contain; transition: transform 0.3s ease; }
.nav-logo-img:hover { transform: scale(1.1) rotate(2deg); filter: drop-shadow(0 0 8px var(--accent-color, #00d2d3)); }

/* --- Projects Page Layout with Moving Gradient --- */
.projects-page-section {
    padding-top: 80px; 
    padding-bottom: 100px;
    background: linear-gradient(-45deg, #ffffff, #f0f8ff, #e6f7f8, #ffffff);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* --- Filter Navigation --- */
.projects-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 15px;
    justify-content: center;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-family: inherit;
    color: #888;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    position: relative;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--accent-color, #00d2d3);
    border-radius: 30px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.filter-btn:hover { color: #000; transform: translateY(-3px); }
.filter-btn.active { color: #fff; box-shadow: 0 10px 20px rgba(0, 210, 211, 0.3); }
.filter-btn.active::before { transform: scaleX(1); transform-origin: left; }

/* --- Projects Grid & Cards --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    perspective: 1000px; /* Crucial for 3D tilt */
}

.project-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: transform 0.1s linear, box-shadow 0.3s ease, opacity 0.4s ease;
    transform-style: preserve-3d; /* For 3D JS effect */
    will-change: transform;
    animation: floatCard 6s ease-in-out infinite;
}

/* Stagger the floating animation so they don't all move at the exact same time */
.project-card:nth-child(even) { animation-delay: 1.5s; animation-duration: 7s; }
.project-card:nth-child(3n) { animation-delay: 0.5s; animation-duration: 5.5s; }

@keyframes floatCard {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.project-card:hover {
    box-shadow: 0 30px 60px rgba(0, 210, 211, 0.25); 
    /* The transform scale is handled by JS for the 3D tilt, but we add box-shadow here */
    z-index: 10;
}

/* Logic class for JS filtering */
.project-card.hide { 
    display: none; 
}
.project-card.filtering {
    transform: scale(0.8) rotate(5deg);
    opacity: 0;
    pointer-events: none;
}

/* --- Mockup Area --- */
.project-mockup-area {
    position: relative;
    height: 300px;
    background-color: #f8fcfc;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    transform: translateZ(30px); /* 3D pop out */
}

/* Animated moving gradients for mockup backgrounds */
.project-card:nth-child(1) .project-mockup-area { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.project-card:nth-child(2) .project-mockup-area { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.project-card:nth-child(3) .project-mockup-area { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }

.desktop-view {
    width: 90%;
    max-height: 85%;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 8px solid #333; 
    border-bottom-width: 15px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(40px); /* 3D pop out inside card */
}
.project-card:hover .desktop-view { transform: translateZ(60px) scale(1.05) translateY(-5px); }

.mobile-view {
    position: absolute;
    bottom: -10px;
    left: 15%; 
    width: 25%;
    min-width: 80px;
    height: auto;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    box-shadow: -10px 15px 35px rgba(0,0,0,0.3);
    border: 4px solid #111; 
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateZ(60px); /* More pop out */
}
.project-card:hover .mobile-view { transform: translateZ(80px) translateY(-15px) rotate(-5deg); }

/* --- Info Area --- */
.project-info-area {
    background-color: var(--accent-color, #00d2d3); 
    padding: 25px;
    color: white;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.project-card:hover .project-info-area {
    background-color: #000;
}

.project-info-area h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #000;
    transition: color 0.4s ease;
    transform: translateZ(20px);
}

.project-card:hover .project-info-area h3 { color: var(--accent-color, #00d2d3); }

.project-info-area p {
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    transition: color 0.4s ease;
    transform: translateZ(10px);
}
.project-card:hover .project-info-area p { color: #ccc; }

/* =======================================================
   SOCIAL MEDIA MARKETING CARDS (Fully Moving Logos)
   ======================================================= */
.social-card { position: relative; cursor: pointer; }

.social-mockup {
    background: radial-gradient(circle, #fff 0%, #f0f0f0 100%);
    padding: 40px;
}

/* Continuous moving/breathing animation for logos */
.client-logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    transition: all 0.5s ease;
    animation: breathingLogo 4s infinite alternate ease-in-out;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transform: translateZ(30px);
}

@keyframes breathingLogo {
    0% { transform: scale(1) translateY(0); filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1)); }
    100% { transform: scale(1.05) translateY(-10px); filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2)); }
}

.social-card:hover .client-logo {
    transform: scale(0.8) translateZ(10px);
    filter: blur(3px) opacity(0.3);
    animation-play-state: paused;
}

.social-hover-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(60px);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.s-link {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.6rem;
    text-decoration: none;
    opacity: 0;
    transform: translateY(40px) scale(0.5) rotate(-180deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

.social-card:hover .s-link { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
.social-card:hover .insta { transition-delay: 0.1s; }
.social-card:hover .fb { transition-delay: 0.2s; }
.s-link.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.s-link.fb { background: #1877F2; }
.s-link:hover { transform: translateY(-8px) scale(1.15) rotate(10deg) !important; box-shadow: 0 20px 30px rgba(0,0,0,0.3); }

/* =========================================
   CUSTOM CURSOR & SPRAY ANIMATIONS
   ========================================= */
body { cursor: none; }
.cursor-dot { width: 10px; height: 10px; background-color: var(--accent-color); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s; box-shadow: 0 0 10px var(--accent-color);}
.cursor-outline { width: 40px; height: 40px; border: 2px solid var(--accent-color); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; transition-duration: 0.1s; transition-timing-function: ease-out; box-shadow: 0 0 20px rgba(0,210,211,0.3);}
.cursor-hover .cursor-outline { width: 70px; height: 70px; background-color: rgba(0, 210, 211, 0.15); border-color: transparent; mix-blend-mode: difference;}

.social-spray-icon { position: absolute; pointer-events: none; color: var(--accent-color); font-size: 24px; z-index: 9997; animation: sprayAnim 1.2s forwards cubic-bezier(0.1, 0.8, 0.3, 1); filter: drop-shadow(0 0 5px var(--accent-color));}
@keyframes sprayAnim {
    0% { transform: translate(-50%, -50%) scale(0.2) rotate(0deg); opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.8) rotate(var(--rot)); opacity: 0; }
}

@media (hover: none) and (pointer: coarse) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline, .social-spray-icon { display: none !important; }
}

/* --- Scroll Animations --- */
.reveal-up, .reveal-fade { opacity: 0; transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-up { transform: translateY(80px) scale(0.9); }
.reveal-fade { transform: scale(0.85); filter: blur(5px); }
.active.reveal-up { opacity: 1; transform: translate(0) scale(1); }
.active.reveal-fade { opacity: 1; transform: scale(1); filter: blur(0); }

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .projects-filter { justify-content: center; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-mockup-area { height: 280px; }
}