/* OPTIMIZED STYLES - FAST & RESPONSIVE */

/* CSS RESET & BASE */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', Arial, sans-serif;
    background: #000;
    color: #fff;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* DEVICE DETECTION */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* CURSOR */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(3);
    background: rgba(255, 255, 255, 0.3);
}

/* MAIN CONTAINER */
.container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* VIEW SYSTEM */
.view {
    position: absolute;
    inset: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    transform: translateX(0);
}

.view.hidden {
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

/* PORTFOLIO VIEW */
.portfolio-view {
    z-index: 1;
}

.sections-wrapper {
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.section {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

/* BOX STYLING */
.box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 2;
    transition: all 0.4s ease;
}

.box:hover::before {
    background: rgba(0,0,0,0.1);
}

/* BACKGROUND IMAGES */
.box-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.6s ease;
    z-index: 1;
    filter: grayscale(70%) brightness(0.6);
    will-change: transform, filter;
}

.box:hover .box-bg {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* CONTENT OVERLAY */
.box-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(2rem, 4vw, 4rem);
    z-index: 3;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    transition: all 0.6s ease;
}

.box-content h2 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.box:hover .box-content h2 {
    background: linear-gradient(45deg, #fff, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.box-content p {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* SPECIAL BOXES */
.gif-box {
    background: #000;
    border-right: 3px solid rgba(255, 255, 255, 0.1);
}

.gif-box::before { background: rgba(0,0,0,0.3); }
.gif-box .box-bg { object-fit: cover; filter: none; }
.gif-box:hover .box-bg { filter: none; }

.gif-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gif-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* LATEST PROJECT - ENHANCED TITLE STYLING */
.latest-box {
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.latest-project-titles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.latest-label {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: all 0.4s ease;
    margin: 0;
}

.latest-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: #fff;
    transition: all 0.4s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.latest-box:hover .latest-label {
    color: rgba(255, 255, 255, 0.8);
}

.latest-box:hover .latest-title {
    background: linear-gradient(45deg, #fff, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.latest-project-label {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    z-index: 4;
    transition: all 0.4s ease;
}

.latest-box:hover .latest-project-label {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) scale(1.05);
}

.play-button {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.play-button:hover {
    transform: translateX(-50%) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
}

.play-button::before {
    content: '▶';
    font-size: 1rem;
}

/* CATEGORY BOXES */
.category-box:nth-child(odd) {
    border-right: 3px solid rgba(255, 255, 255, 0.1);
}

.category-box:nth-child(even) {
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

/* EXTERNAL CATEGORIES */
.category-box.external-category {
    border-color: rgba(245, 158, 11, 0.3);
}

.category-box.external-category:nth-child(odd) {
    border-right: 3px solid rgba(255, 255, 255, 0.1);
}

.category-box.external-category:nth-child(even) {
    border-left: 3px solid rgba(255, 255, 255, 0.1);
}

/* CONTACT BOX */
.contact-box {
    position: relative;
    cursor: pointer;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    z-index: 1;
    opacity: 0.3;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2;
    transition: all 0.4s ease;
}

.contact-box:hover .contact-overlay {
    background: rgba(0,0,0,0.4);
}

/* CONTACT INFO */
.contact-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.contact-info.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4ecdc4;
}

.contact-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.contact-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2rem;
    min-width: 50px;
    text-align: center;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #4ecdc4;
    transform: scale(1.05);
}

/* ENHANCED SOCIAL LINKS WITH PNG ICONS */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    transform: translateY(-2px);
    border-color: rgba(78, 205, 196, 0.5);
}

.social-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-link:hover .social-icon-img {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(180deg) saturate(2);
}

/* REMOVE CONTACT CTA BUTTONS */
.contact-cta {
    display: none !important;
}

.contact-button {
    display: none !important;
}

/* RECOMMENDATIONS BOX - ENHANCED WITH BACKGROUND */
.recommendations-box {
    position: relative;
    cursor: pointer;
}

.recommendations-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #96ceb4, #ffeaa7, #fab1a0, #fd79a8);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    z-index: 1;
    opacity: 0.4;
}

.recommendations-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2;
    transition: all 0.4s ease;
}

.recommendations-box:hover .recommendations-overlay {
    background: rgba(0,0,0,0.4);
}

/* RECOMMENDATIONS INFO */
.recommendations-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.recommendations-info.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.recommendations-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendations-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fab1a0;
}

.recommendations-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recommendations-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.recommendations-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow-y: auto;
}

.recommendation-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(250, 177, 160, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.recommendation-item::before {
    content: '"';
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: rgba(250, 177, 160, 0.3);
    font-family: serif;
    line-height: 1;
}

.recommendation-comment {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    font-style: italic;
    padding-left: 2rem;
}

.recommendation-author {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fab1a0;
    margin-bottom: 0.25rem;
    text-align: right;
}

.recommendation-company {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scroll-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #fff;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.scroll-dot.active {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.scroll-dot.active::before {
    width: 8px;
    height: 8px;
}

.scroll-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* MOBILE VIEW */
.mobile-view {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2;
    overflow: hidden;
}

.mobile-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-logo {
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mobile-indicators {
    display: flex;
    gap: 0.5rem;
}

.mobile-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.mobile-indicator.active {
    background: #4ecdc4;
    transform: scale(1.3);
}

.mobile-cards-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}

.mobile-card {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.4s ease;
    cursor: pointer;
    will-change: transform;
    overflow: hidden;
}

.mobile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 60%, 
        rgba(0,0,0,0.2) 70%, 
        rgba(0,0,0,0.5) 80%, 
        rgba(0,0,0,0.7) 90%,
        rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.mobile-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1.5rem;
    margin-top: 30vh;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0,0,0,0.2) 30%, 
        rgba(0,0,0,0.5) 70%,
        rgba(0,0,0,0.7) 100%);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* MOBILE LATEST PROJECT TITLES */
.mobile-card-content .mobile-latest-titles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mobile-card-content .mobile-latest-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.mobile-card-content .mobile-latest-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 0.9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.mobile-card-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    line-height: 0.9;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    text-align: center;
}

.mobile-card-description {
    font-size: 1.1rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ENHANCED MOBILE CARD ACTIONS - REGULAR AND EXTERNAL */
.mobile-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
    outline: none;
}

.mobile-card-action::before {
    content: '▶';
    font-size: 1rem;
}

.mobile-card-action:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(0.98);
}

/* ENHANCED MOBILE EXTERNAL BUTTONS */
.mobile-external-btn {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(255, 193, 7, 0.25)) !important;
    border: 2px solid rgba(245, 158, 11, 0.7) !important;
    color: #ffd93d !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}

.mobile-external-btn::before {
    content: '';
    font-size: 1rem;
}

.mobile-external-btn .mobile-btn-icon {
    font-size: 1.1rem;
    animation: mobileIconFloat 2s ease-in-out infinite;
}

@keyframes mobileIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.mobile-external-btn:active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(255, 193, 7, 0.4)) !important;
    border-color: rgba(245, 158, 11, 0.9) !important;
    transform: scale(0.96);
}

/* Mobile External Button Glow Effect */
.mobile-btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        rgba(245, 158, 11, 0.3), 
        rgba(255, 193, 7, 0.3), 
        rgba(255, 235, 59, 0.3),
        rgba(245, 158, 11, 0.3)
    );
    background-size: 400% 400%;
    border-radius: 50px;
    opacity: 0.6;
    z-index: -1;
    animation: mobileGradientShift 3s ease infinite;
    filter: blur(6px);
}

@keyframes mobileGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.mobile-btn-text {
    position: relative;
    z-index: 2;
    font-weight: 800;
    letter-spacing: 1px;
}

.mobile-btn-icon {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.mobile-card.gif-card {
    background: #000 !important;
}

.mobile-card.gif-card .mobile-gif {
    position: absolute;
    inset: 0;
    object-fit: cover;
    z-index: 0;
}

.mobile-card.contact-card {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 8s ease infinite;
}

.mobile-card.contact-card::before {
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 60%, 
        rgba(0,0,0,0.1) 70%, 
        rgba(0,0,0,0.4) 80%, 
        rgba(0,0,0,0.6) 90%, 
        rgba(0,0,0,0.7) 100%);
}

.mobile-card.recommendations-card {
    background: linear-gradient(45deg, #96ceb4, #ffeaa7, #fab1a0, #fd79a8) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 10s ease infinite;
}

.mobile-card.recommendations-card::before {
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 60%, 
        rgba(0,0,0,0.1) 70%, 
        rgba(0,0,0,0.4) 80%, 
        rgba(0,0,0,0.6) 90%, 
        rgba(0,0,0,0.7) 100%);
}

.mobile-nav {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 1000;
}

.mobile-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.mobile-nav-btn:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(0.95);
}

.mobile-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.mobile-swipe-hint {
    position: fixed;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 0.7;
    animation: fadeInOut 3s ease-in-out infinite;
}

.mobile-swipe-hint span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.mobile-swipe-hint::after {
    content: '↕';
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* CATEGORY VIEW */
.category-view {
    z-index: 2;
}

.category-section {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.category-info {
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-right: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    box-sizing: border-box;
}

.category-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(78, 205, 196, 0.1) 50%, 
        rgba(69, 183, 209, 0.1) 100%);
    z-index: 1;
    opacity: 0.3;
}

.category-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.back-button {
    position: fixed;
    top: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.05);
}

.back-button::before {
    content: '←';
    font-size: 1rem;
}

.category-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
    text-align: center;
    word-break: break-word;
    hyphens: auto;
}

.category-description {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    hyphens: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* EXTERNAL CATEGORY ACTIONS IN CATEGORY VIEW */
.external-category-actions {
    margin: 2rem 0;
    text-align: center;
}

.external-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(255, 193, 7, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 1rem 2rem;
    color: #ffd93d;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
    min-width: 220px;
}

.external-category-button:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(255, 193, 7, 0.4));
    border-color: rgba(245, 158, 11, 0.8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 48px rgba(245, 158, 11, 0.4);
    color: #ffffff;
}

.external-category-button:active {
    transform: translateY(-1px) scale(1.02);
    transition: all 0.1s ease;
}

.external-btn-text {
    font-weight: 800;
    letter-spacing: 1.2px;
}

.external-btn-icon {
    font-size: 1.1rem;
    animation: iconFloat 2s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.category-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 900;
    color: #4ecdc4;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* VIDEO GALLERY */
.video-gallery {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
    border-left: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.gallery-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 5;
    flex-shrink: 0;
}

.gallery-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 0.5rem;
}

.gallery-count {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.video-grid-container {
    height: 100%;
    overflow-y: auto;
    padding: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    min-height: max-content;
}

.video-item {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-item.playing {
    border: 2px solid #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

/* REMOVED BLACK/WHITE OVERLAY - NO MORE FILTERS */
.video-thumbnail {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.6s ease;
    z-index: 1;
}

.video-item:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    z-index: 3;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    transition: all 0.4s ease;
}

.video-title {
    font-size: clamp(0.8rem, 2vw, 1rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

.video-description {
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    display: none; /* Hidden by default - only title visible */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* UNIFIED COLORS FOR ARTICLES - SAME AS VIDEOS */
.video-item.article-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    opacity: 0.8;
    transition: all 0.4s ease;
    color: #000;
    font-size: 1.2rem;
}

.video-item:hover .play-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay::before {
    content: '▶';
    margin-left: 2px;
}

/* UNIFIED ARTICLE PLAY OVERLAY - SAME COLORS AS VIDEOS */
.video-item.article-item .play-overlay {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.video-item.article-item .play-overlay::before {
    content: '≣';
    margin-left: 0;
}

/* VIDEO POPUP */
.video-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    transform: scale(0.95);
}

.video-popup-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: scale(1);
}

.video-popup-content {
    width: 100%;
    height: 100%;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    overflow: hidden;
    backdrop-filter: blur(15px);
    transform: translateY(30px);
    transition: all 0.4s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
}

.video-popup-overlay.active .video-popup-content {
    transform: translateY(0);
}

.video-popup-header {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.video-popup-title {
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.close-popup-btn {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.close-popup-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.video-popup-player {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.video-popup-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#categoryArticleImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-popup-description {
    flex: 1;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    overflow-y: auto;
    min-height: 120px;
    max-height: 300px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.video-popup-footer {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.video-popup-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: clamp(0.75rem, 2vw, 0.9rem);
}

.video-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* FOOTER */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 500;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    pointer-events: none;
}

.site-footer.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    flex: 1;
}

.footer-copyright p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
}

.ai-free {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5) !important;
    margin-top: 0.2rem !important;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-link {
    color: #4ecdc4;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    transform: scale(1.05);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

/* ENHANCED FOOTER SOCIAL ICONS WITH PNG SUPPORT */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    background: rgba(78, 205, 196, 0.3);
    transform: translateY(-2px) scale(1.1);
    border-color: rgba(78, 205, 196, 0.5);
}

.social-icon .social-icon-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-icon:hover .social-icon-img {
    filter: brightness(0) invert(1) sepia(1) hue-rotate(180deg) saturate(2);
}

/* LOADING */
.loading {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-text {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 5px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 400% 400%;
    animation: gradientShift 2s ease infinite;
}

/* ANIMATIONS */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* SCROLLBARS */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .scroll-indicator {
        right: 2rem;
    }
    
    .box-content {
        padding: clamp(1.5rem, 3vw, 3rem);
    }
    
    .category-info {
        padding: clamp(1.5rem, 4vw, 3rem);
    }
}

@media (max-width: 768px) {
    html, body {
        cursor: default !important;
        overflow-x: hidden;
        overflow-y: hidden;
    }
    
    .cursor {
        display: none !important;
    }
    
    .desktop-view,
    .desktop-only,
    .portfolio-view {
        display: none !important;
        visibility: hidden !important;
    }
    
    .mobile-view {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        pointer-events: all !important;
        visibility: visible !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 10 !important;
    }
    
    .mobile-view.hidden {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
        pointer-events: all !important;
        visibility: visible !important;
    }
    
    .mobile-container {
        width: 100vw !important;
        height: 100vh !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        background: #000 !important;
    }
    
    .mobile-cards-container {
        width: 100vw !important;
        height: 100vh !important;
        position: relative !important;
        overflow: hidden !important;
        touch-action: pan-y !important;
        background: #000 !important;
    }

    .mobile-card-content {
        margin-top: 30vh !important;
        padding: 1.5rem;
        min-height: 70vh;
        background: linear-gradient(180deg, 
            transparent 0%, 
            rgba(0,0,0,0.2) 30%, 
            rgba(0,0,0,0.5) 70%,
            rgba(0,0,0,0.7) 100%);
    }

    .mobile-card-title {
        font-size: 2rem;
        margin-bottom: 1.2rem;
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
        background-clip: initial !important;
        animation: none !important;
    }

    .mobile-card-description {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    .mobile-card-action {
        padding: 0.9rem 1.8rem;
        font-size: 0.85rem;
        background: rgba(255, 255, 255, 0.2) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    /* MOBILE LATEST PROJECT TITLES */
    .mobile-card-content .mobile-latest-titles {
        margin-bottom: 1.5rem;
    }

    .mobile-card-content .mobile-latest-label {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.6) !important;
    }

    .mobile-card-content .mobile-latest-title {
        font-size: 1.6rem;
        color: #ffffff !important;
    }

    /* MOBILE EXTERNAL BUTTON STYLES - PROPER VISIBILITY */
    .mobile-external-btn {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(255, 193, 7, 0.3)) !important;
        border-color: rgba(245, 158, 11, 0.7) !important;
        color: #ffd93d !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 200px;
        padding: 1rem 2rem !important;
        font-size: 0.85rem !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
        backdrop-filter: blur(10px) !important;
    }

    .mobile-external-btn:active {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(255, 193, 7, 0.5)) !important;
        border-color: rgba(245, 158, 11, 0.9) !important;
        transform: scale(0.96) !important;
    }

    .mobile-external-btn .mobile-btn-glow {
        opacity: 0.8 !important;
        filter: blur(4px) !important;
    }

    .mobile-external-btn .mobile-btn-icon {
        font-size: 1.1rem !important;
        animation: mobileIconFloat 2s ease-in-out infinite !important;
    }

    .mobile-external-btn .mobile-btn-text {
        font-weight: 800 !important;
        letter-spacing: 1px !important;
    }

    /* SHOW DESKTOP EXTERNAL BUTTONS ON MOBILE WITH ADAPTATION */
    .external-button-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        bottom: 1.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        pointer-events: all !important;
    }

    .external-link-button.animated-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 180px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.8rem !important;
        border-radius: 40px !important;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(255, 193, 7, 0.3)) !important;
        border: 2px solid rgba(245, 158, 11, 0.7) !important;
        color: #ffd93d !important;
        box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    .external-link-button.animated-btn:active {
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(255, 193, 7, 0.5)) !important;
        border-color: rgba(245, 158, 11, 0.9) !important;
        transform: scale(0.96) !important;
    }

    .external-link-button.animated-btn .btn-text {
        font-size: 0.8rem !important;
        font-weight: 800 !important;
        letter-spacing: 1px !important;
    }

    .external-link-button.animated-btn .btn-icon {
        font-size: 1rem !important;
        animation: mobileIconFloat 2s ease-in-out infinite !important;
    }

    .external-link-button.animated-btn .btn-glow {
        opacity: 0.8 !important;
        filter: blur(4px) !important;
    }

    /* Category view mobile - IMPROVED ALIGNMENT AND OPTIMIZATION */
    .category-section {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        height: 100vh;
        display: grid;
    }

    .category-info {
        height: auto;
        min-height: 40vh;
        max-height: 40vh;
        border-right: none;
        border-bottom: 3px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        padding-top: 5rem;
        overflow-y: auto;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .category-content {
        max-width: 100%;
        margin: 0;
        text-align: center;
        min-height: auto;
        justify-content: flex-start;
        align-items: center;
        padding: 1rem 0;
    }

    .category-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.1;
        word-break: break-word;
        hyphens: auto;
    }

    .category-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        line-height: 1.5;
        text-align: center;
        max-width: 100%;
        margin-bottom: 1rem;
        word-break: break-word;
        hyphens: auto;
    }

    .external-category-actions {
        margin: 1rem 0;
    }

    .external-category-button {
        min-width: 180px;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .category-stats {
        gap: 1.5rem;
        margin-top: 1rem;
        justify-content: center;
    }

    .video-gallery {
        height: auto;
        min-height: 60vh;
        max-height: 60vh;
        border-left: none;
        border-top: 3px solid rgba(255, 255, 255, 0.1);
        overflow: hidden;
        flex: 1;
    }

    .gallery-content {
        flex: 1;
        overflow: hidden;
        height: 100%;
    }

    .video-grid-container {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
        z-index: 1001;
    }

    .gallery-header {
        padding: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        padding-bottom: 2rem;
    }

    .play-overlay {
        opacity: 1 !important;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Video popup mobile */
    .video-popup-overlay {
        position: fixed;
        inset: 0;
        z-index: 10000;
        padding: 0;
    }

    .video-popup-content {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
    }

    .video-popup-header {
        padding: 1rem;
    }

    .video-popup-footer {
        padding: 1rem;
    }

    .video-popup-close-btn {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

    .video-popup-player {
        aspect-ratio: 16/9;
        max-height: 50vh;
    }

    .video-popup-description {
        min-height: 150px;
        max-height: none;
        flex: 1;
        font-size: 1rem;
        padding: 1.5rem;
    }

    /* ENHANCED MOBILE CONTACT STYLES */
    .contact-info {
        background: rgba(0,0,0,0.98);
        position: fixed !important;
        inset: 0 !important;
        z-index: 10000 !important;
    }

    .contact-header {
        padding: 1.5rem;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);
    }

    .contact-header h3 {
        font-size: 1.3rem;
        color: #4ecdc4;
    }

    .contact-close {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }

    .contact-content {
        padding: 1.5rem;
        gap: 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contact-item {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
    }

    .contact-item:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(78, 205, 196, 0.6);
        transform: translateY(-1px);
    }

    .contact-icon {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .contact-details h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        color: #4ecdc4;
    }

    .contact-link {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .social-link {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
        padding: 1rem;
        justify-content: center;
        font-size: 0.95rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.25);
    }

    .social-link:hover {
        background: rgba(78, 205, 196, 0.25);
        border-color: rgba(78, 205, 196, 0.6);
        transform: translateY(-1px);
    }

    .social-icon-img {
        width: 22px;
        height: 22px;
        margin-right: 0.3rem;
    }

    /* MOBILE RECOMMENDATIONS STYLES */
    .recommendations-info {
        background: rgba(0,0,0,0.98);
        position: fixed !important;
        inset: 0 !important;
        z-index: 10000 !important;
    }

    .recommendations-header {
        padding: 1.5rem;
        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(20px);
    }

    .recommendations-header h3 {
        font-size: 1.3rem;
        color: #fab1a0;
    }

    .recommendations-close {
        width: 44px;
        height: 44px;
        font-size: 1.8rem;
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.4);
    }

    .recommendations-content {
        padding: 1.5rem;
        gap: 1.5rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .recommendation-item {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 16px;
    }

    .recommendation-item:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(250, 177, 160, 0.6);
        transform: translateY(-1px);
    }

    .recommendation-comment {
        font-size: 1rem;
        padding-left: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .recommendation-author {
        font-size: 1.1rem;
        color: #fab1a0;
    }

    .recommendation-company {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Footer mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        text-align: center;
    }

    .footer-copyright {
        flex: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-social {
        justify-content: center;
        gap: 0.8rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon .social-icon-img {
        width: 20px;
        height: 20px;
    }

    /* Remove hover effects on mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    .mobile-card-action:hover,
    .mobile-nav-btn:hover,
    .close-popup-btn:hover,
    .video-popup-close-btn:hover {
        transform: none !important;
        background: initial !important;
        border-color: initial !important;
    }
}

@media (max-width: 480px) {
    .mobile-card-title {
        font-size: 1.7rem !important;
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
        animation: none !important;
    }

    .mobile-card-description {
        font-size: 0.95rem;
    }

    .mobile-card-content {
        padding: 1.2rem;
        margin-top: 28vh !important;
        min-height: 72vh;
    }

    /* MOBILE LATEST PROJECT TITLES - SMALL SCREENS */
    .mobile-card-content .mobile-latest-label {
        font-size: 0.9rem;
    }

    .mobile-card-content .mobile-latest-title {
        font-size: 1.4rem;
    }

    .mobile-nav {
        bottom: 1.5rem;
    }

    .mobile-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .mobile-header {
        padding: 0.8rem;
    }

    .mobile-logo {
        font-size: 1rem;
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }

    .video-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1px;
    }

    .category-info {
        padding: 1rem;
        padding-top: 5rem;
        min-height: 40vh;
        max-height: 40vh;
    }

    .category-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
        line-height: 1.1;
    }

    .category-description {
        font-size: clamp(0.85rem, 4vw, 1rem);
        line-height: 1.4;
    }

    .external-category-button {
        min-width: 160px;
        padding: 0.7rem 1.3rem;
        font-size: 0.75rem;
    }

    .back-button {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
        top: 0.8rem;
        left: 0.8rem;
    }

    .footer-content {
        padding: 0.8rem;
    }

    .footer-copyright p {
        font-size: 0.7rem;
    }

    .footer-link {
        font-size: 0.7rem;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    .social-icon .social-icon-img {
        width: 16px;
        height: 16px;
    }

    /* Mobile external buttons for small screens */
    .external-link-button.animated-btn {
        min-width: 160px !important;
        padding: 0.7rem 1.3rem !important;
        font-size: 0.75rem !important;
    }

    .mobile-external-btn {
        min-width: 160px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.75rem !important;
    }

    /* Mobile contact for small screens */
    .contact-header {
        padding: 1.2rem;
    }

    .contact-content {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-details h4 {
        font-size: 1rem;
    }

    .contact-link {
        font-size: 1.1rem;
    }

    .social-link {
        min-width: 100px;
        max-width: 130px;
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    /* Mobile recommendations for small screens */
    .recommendations-header {
        padding: 1.2rem;
    }

    .recommendations-content {
        padding: 1.2rem;
        gap: 1.2rem;
    }

    .recommendation-item {
        padding: 1.2rem;
    }

    .recommendation-comment {
        font-size: 0.95rem;
        padding-left: 1.2rem;
    }

    .recommendation-author {
        font-size: 1rem;
    }

    .recommendation-company {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .mobile-card-content {
        padding: 1rem;
        margin-top: 25vh;
        min-height: 75vh;
    }

    .mobile-card-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.8rem;
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
        animation: none !important;
    }

    .mobile-card-description {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    /* MOBILE LATEST PROJECT TITLES - LANDSCAPE */
    .mobile-card-content .mobile-latest-label {
        font-size: 0.8rem;
    }

    .mobile-card-content .mobile-latest-title {
        font-size: 1.2rem;
    }

    .mobile-nav {
        bottom: 1rem;
    }

    .mobile-header {
        padding: 0.5rem 1rem;
    }

    .mobile-logo {
        font-size: 0.9rem;
        color: #ffffff !important;
        background: none !important;
        -webkit-background-clip: initial !important;
        -webkit-text-fill-color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

    .category-info {
        min-height: 45vh;
        max-height: 45vh;
        padding-top: 4.5rem;
    }

    .video-gallery {
        min-height: 55vh;
        max-height: 55vh;
    }

    /* Mobile external buttons in landscape mode */
    .external-link-button.animated-btn {
        min-width: 150px !important;
        padding: 0.6rem 1.2rem !important;
        font-size: 0.7rem !important;
    }

    .mobile-external-btn {
        min-width: 150px !important;
        padding: 0.7rem 1.3rem !important;
        font-size: 0.7rem !important;
    }

    .external-category-button {
        min-width: 150px;
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
    }
}