/* Mobile Device Optimizations */
/* ============================= */

/* Prevent text size adjustment on mobile devices */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Touch action optimization for all mobile devices */
* {
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
    -webkit-touch-callout: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

/* Smooth scrolling for all mobile browsers */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
    /* iOS Safari momentum scrolling */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
    /* Improve text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Language-specific font adjustments */
body.lang-hi {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    line-height: 1.7;
}

body.lang-hi .hero-title,
body.lang-hi .section-title {
    font-family: 'Noto Serif Devanagari', 'Playfair Display', serif;
    line-height: 1.4;
    font-weight: 600;
}

/* Enhanced Hindi Typography */
body.lang-hi h1, body.lang-hi h2, body.lang-hi h3, body.lang-hi h4, body.lang-hi h5, body.lang-hi h6 {
    font-family: 'Noto Serif Devanagari', 'Playfair Display', serif;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body.lang-hi p, body.lang-hi span, body.lang-hi div {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    line-height: 1.7;
    letter-spacing: 0.005em;
}

/* Hindi Navigation */
body.lang-hi .nav-link {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 500;
}

/* Hindi Buttons */
body.lang-hi .cta-button, body.lang-hi .btn, body.lang-hi button {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
    font-weight: 500;
}

/* Hindi Form Elements */
body.lang-hi input, body.lang-hi textarea, body.lang-hi select {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* Hindi Mobile Optimizations */
@media (max-width: 768px) {
    body.lang-hi {
        line-height: 1.6;
    }
    
    body.lang-hi .hero-title {
        line-height: 1.3;
    }
    
    body.lang-hi .section-title {
        line-height: 1.3;
    }
}

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

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(10, 10, 10, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10000 !important;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile: Make navbar opaque on phones */
@media (max-width: 768px) {
    .navbar {
        background: rgba(10, 10, 10, 0.95);
    }
}


.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.nav-logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.nav-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0;
}

.nav-menu {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: #cccccc;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    border-radius: 6px;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 107, 53, 0.1);
}

.nav-link:active {
    transform: translateY(2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: -webkit-gradient(linear, left top, right top, from(#ff6b35), to(#f7931e));
    background: -webkit-linear-gradient(left, #ff6b35, #f7931e);
    background: -moz-linear-gradient(left, #ff6b35, #f7931e);
    background: -o-linear-gradient(left, #ff6b35, #f7931e);
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    -webkit-transition: width 0.3s ease;
    -moz-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #cccccc;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    min-height: 40px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lang-btn:hover {
    border-color: #ff6b35;
    color: #ffffff;
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-btn.active {
    border-color: #ff6b35;
    color: #ffffff;
    background: rgba(255, 107, 53, 0.2);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.lang-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    margin: 3px 0;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -o-transition: 0.3s;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: 0;
    -webkit-transform: scale(1.3);
    -moz-transform: scale(1.3);
    -ms-transform: scale(1.3);
    -o-transform: scale(1.3);
    transform: scale(1.3);
    -webkit-animation: videoZoomInSmooth 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    -moz-animation: videoZoomInSmooth 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    -o-animation: videoZoomInSmooth 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation: videoZoomInSmooth 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    will-change: transform, opacity;
    -webkit-filter: brightness(1.1) contrast(1.4);
    filter: brightness(1.1) contrast(1.4);
    -webkit-transition: filter 0.5s ease;
    -moz-transition: filter 0.5s ease;
    -o-transition: filter 0.5s ease;
    transition: filter 0.5s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right bottom, from(rgba(10, 10, 10, 0.4)), color-stop(50%, rgba(20, 20, 20, 0.3)), to(rgba(10, 10, 10, 0.5)));
    background: -webkit-linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(10, 10, 10, 0.5) 100%);
    background: -moz-linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(10, 10, 10, 0.5) 100%);
    background: -o-linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(10, 10, 10, 0.5) 100%);
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(20, 20, 20, 0.3) 50%, rgba(10, 10, 10, 0.5) 100%);
    z-index: -1;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        -webkit-radial-gradient(20px 30px, 2px 2px, rgba(255, 107, 53, 0.3), transparent),
        -webkit-radial-gradient(40px 70px, 2px 2px, rgba(247, 147, 30, 0.2), transparent),
        -webkit-radial-gradient(90px 40px, 1px 1px, rgba(255, 107, 53, 0.4), transparent),
        -webkit-radial-gradient(130px 80px, 1px 1px, rgba(247, 147, 30, 0.3), transparent),
        -webkit-radial-gradient(160px 30px, 2px 2px, rgba(255, 107, 53, 0.2), transparent);
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 107, 53, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(247, 147, 30, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 107, 53, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(247, 147, 30, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 107, 53, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    -webkit-animation: particleFloat 20s linear infinite;
    -moz-animation: particleFloat 20s linear infinite;
    -o-animation: particleFloat 20s linear infinite;
    animation: particleFloat 20s linear infinite;
    z-index: 0;
}

@-webkit-keyframes particleFloat {
    0% { -webkit-transform: translateY(0px) translateX(0px); transform: translateY(0px) translateX(0px); }
    33% { -webkit-transform: translateY(-100px) translateX(100px); transform: translateY(-100px) translateX(100px); }
    66% { -webkit-transform: translateY(-200px) translateX(-100px); transform: translateY(-200px) translateX(-100px); }
    100% { -webkit-transform: translateY(-300px) translateX(0px); transform: translateY(-300px) translateX(0px); }
}

@-moz-keyframes particleFloat {
    0% { -moz-transform: translateY(0px) translateX(0px); transform: translateY(0px) translateX(0px); }
    33% { -moz-transform: translateY(-100px) translateX(100px); transform: translateY(-100px) translateX(100px); }
    66% { -moz-transform: translateY(-200px) translateX(-100px); transform: translateY(-200px) translateX(-100px); }
    100% { -moz-transform: translateY(-300px) translateX(0px); transform: translateY(-300px) translateX(0px); }
}

@-o-keyframes particleFloat {
    0% { -o-transform: translateY(0px) translateX(0px); transform: translateY(0px) translateX(0px); }
    33% { -o-transform: translateY(-100px) translateX(100px); transform: translateY(-100px) translateX(100px); }
    66% { -o-transform: translateY(-200px) translateX(-100px); transform: translateY(-200px) translateX(-100px); }
    100% { -o-transform: translateY(-300px) translateX(0px); transform: translateY(-300px) translateX(0px); }
}

@keyframes particleFloat {
    0% { -webkit-transform: translateY(0px) translateX(0px); -moz-transform: translateY(0px) translateX(0px); -ms-transform: translateY(0px) translateX(0px); -o-transform: translateY(0px) translateX(0px); transform: translateY(0px) translateX(0px); }
    33% { -webkit-transform: translateY(-100px) translateX(100px); -moz-transform: translateY(-100px) translateX(100px); -ms-transform: translateY(-100px) translateX(100px); -o-transform: translateY(-100px) translateX(100px); transform: translateY(-100px) translateX(100px); }
    66% { -webkit-transform: translateY(-200px) translateX(-100px); -moz-transform: translateY(-200px) translateX(-100px); -ms-transform: translateY(-200px) translateX(-100px); -o-transform: translateY(-200px) translateX(-100px); transform: translateY(-200px) translateX(-100px); }
    100% { -webkit-transform: translateY(-300px) translateX(0px); -moz-transform: translateY(-300px) translateX(0px); -ms-transform: translateY(-300px) translateX(0px); -o-transform: translateY(-300px) translateX(0px); transform: translateY(-300px) translateX(0px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    margin-bottom: 2rem;
    opacity: 0;
    -webkit-animation: fadeInUp 1.2s ease 0.5s forwards;
    -moz-animation: fadeInUp 1.2s ease 0.5s forwards;
    -o-animation: fadeInUp 1.2s ease 0.5s forwards;
    animation: fadeInUp 1.2s ease 0.5s forwards;
}

.title-line {
    display: block;
    background: -webkit-gradient(linear, left top, right bottom, from(#ffffff), to(#cccccc));
    background: -webkit-linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    background: -moz-linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    background: -o-linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    -webkit-animation: fadeInUp 1.2s ease 0.8s forwards;
    -moz-animation: fadeInUp 1.2s ease 0.8s forwards;
    -o-animation: fadeInUp 1.2s ease 0.8s forwards;
    animation: fadeInUp 1.2s ease 0.8s forwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-cta {
    opacity: 0;
    -webkit-animation: fadeInUp 1.2s ease 1.1s forwards;
    -moz-animation: fadeInUp 1.2s ease 1.1s forwards;
    -o-animation: fadeInUp 1.2s ease 1.1s forwards;
    animation: fadeInUp 1.2s ease 1.1s forwards;
}

.cta-button {
    position: relative;
    display: inline-block;
    background: -webkit-gradient(linear, left top, right bottom, from(#ff6b35), to(#f7931e));
    background: -webkit-linear-gradient(135deg, #ff6b35, #f7931e);
    background: -moz-linear-gradient(135deg, #ff6b35, #f7931e);
    background: -o-linear-gradient(135deg, #ff6b35, #f7931e);
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border: 2px solid #ff6b35;
    color: #ffffff;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    -moz-box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: -webkit-gradient(linear, left top, right top, from(#ff6b35), to(#f7931e));
    background: -webkit-linear-gradient(left, #ff6b35, #f7931e);
    background: -moz-linear-gradient(left, #ff6b35, #f7931e);
    background: -o-linear-gradient(left, #ff6b35, #f7931e);
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    -webkit-transition: left 0.4s ease;
    -moz-transition: left 0.4s ease;
    -o-transition: left 0.4s ease;
    transition: left 0.4s ease;
    z-index: 1;
}

.cta-button:hover .button-bg {
    left: 0;
}

.cta-button:hover {
    border-color: #f7931e;
    -webkit-transform: translateY(-3px) scale(1.05);
    -moz-transform: translateY(-3px) scale(1.05);
    -ms-transform: translateY(-3px) scale(1.05);
    -o-transform: translateY(-3px) scale(1.05);
    transform: translateY(-3px) scale(1.05);
    -webkit-box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    -moz-box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
    background: -webkit-gradient(linear, left top, right bottom, from(#f7931e), to(#ff6b35));
    background: -webkit-linear-gradient(135deg, #f7931e, #ff6b35);
    background: -moz-linear-gradient(135deg, #f7931e, #ff6b35);
    background: -o-linear-gradient(135deg, #f7931e, #ff6b35);
    background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    -webkit-animation: fadeIn 1s ease 2s forwards;
    -moz-animation: fadeIn 1s ease 2s forwards;
    -o-animation: fadeIn 1s ease 2s forwards;
    animation: fadeIn 1s ease 2s forwards;
}

.scroll-line {
    display: none;
}

.scroll-text {
    font-size: 0.8rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 4rem;
    text-align: center;
    color: #333333;
}

/* Work Section */
.work-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 1rem;
}

/* Video Showcase */
.video-showcase {
    padding: 2rem 0 4rem;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr 1fr 1fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.video-container {
    position: relative;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.02);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-container:hover {
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    -o-transform: translateY(-10px);
    transform: translateY(-10px);
    -webkit-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 107, 53, 0.3);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.showcase-video {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    -webkit-transition: all 0.6s ease;
    -moz-transition: all 0.6s ease;
    -o-transition: all 0.6s ease;
    transition: all 0.6s ease;
    -webkit-filter: brightness(0.8) contrast(1.1);
    filter: brightness(0.8) contrast(1.1);
}

.video-container:hover .showcase-video {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-filter: brightness(0.9) contrast(1.2);
    filter: brightness(0.9) contrast(1.2);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.3) 0%,
        transparent 40%,
        transparent 60%,
        rgba(10, 10, 10, 0.5) 100%
    );
    z-index: 1;
    transition: all 0.6s ease;
}

.video-container:hover .video-overlay {
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.2) 0%,
        transparent 50%,
        transparent 50%,
        rgba(10, 10, 10, 0.3) 100%
    );
}

.video-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.8) 50%,
        transparent 100%
    );
    z-index: 2;
    transform: translateY(10px);
    transition: all 0.6s ease;
}

.video-container:hover .video-content {
    transform: translateY(0);
}

.video-info {
    max-width: 100%;
}

.video-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    line-height: 1.2;
}

.video-description {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.7rem;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(255, 107, 53, 0.3);
    border-color: #ff6b35;
    color: #ffffff;
}

.work-collage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 1130px;
}

.work-item {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

/* Collage positioning */
.collage-top {
    top: 0;
    left: 0;
    width: 500px;
    height: 400px;
    z-index: 3;
}

.collage-right {
    top: 200px;
    right: 0;
    width: 450px;
    height: 360px;
    z-index: 2;
}

.collage-left {
    top: 650px;
    left: 0;
    width: 480px;
    height: 380px;
    z-index: 1;
}

/* Enhanced hover effects */
.work-item:hover {
    transform: translateY(-20px) scale(1.05);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.collage-top:hover {
    transform: translateY(-20px) scale(1.05);
}

.work-image {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s ease;
    position: relative;
}

.work-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 107, 53, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.work-item:hover .work-img {
    transform: scale(1.1);
}

.work-item:hover .work-img::after {
    transform: translateX(100%);
}

/* View More Button */
.view-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0 1rem;
    position: relative;
}

.view-more-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: 2px solid #ff6b35;
    border-radius: 50px;
    color: #ff6b35;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 1;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
    border-color: #f7931e;
    color: #ffffff;
}

.btn-text {
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.btn-icon {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: all 0.4s ease;
}

.view-more-btn:hover .btn-icon {
    transform: translateY(3px);
    animation: bounce 1s infinite;
}

.btn-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.view-more-btn:hover .btn-bg {
    left: 0;
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 2;
}

.view-more-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Floating animation for the button */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-1px);
    }
}

.view-more-btn {
    animation: float 3s ease-in-out infinite;
}

.view-more-btn:hover {
    animation: none;
}

/* Pulse effect on load */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255, 107, 53, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
    }
}

.view-more-btn.pulse {
    animation: pulse 2s infinite;
}

/* Services Section */
.services-section {
    background: #ffffff;
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.services-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(300px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.service-item {
    position: relative;
    padding: 2rem;
    background: #ffffff;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333333;
}

.service-item p {
    color: #666666;
    line-height: 1.6;
    font-size: 1rem;
}

@media screen and (max-width: 768px) {
    .services-section {
        padding: 4rem 0;
        margin-top: 1rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .services-grid {
        gap: 1.5rem;
    }
}

/* About Section */
.about-section {
    background: #ffffff;
    padding-top: 3rem;
}

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

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ff6b35;
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Our Team Section */
.team-section {
    background: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 0 0 2rem 0; /* Reduced padding for tighter spacing */
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.team-member.animate {
    opacity: 1;
    transform: translateY(0);
}

.team-member:nth-child(even) {
    grid-template-columns: 1fr 500px;
}

.team-member:nth-child(even) .team-photo {
    order: 2;
}

.team-member:nth-child(even) .team-info {
    order: 1;
    text-align: right;
}

.team-photo {
    position: relative;
    width: 500px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: transparent;
}

/* Enlarge first team member photo (img 5) */
.team-member:first-child .team-photo {
    width: 540px;
    height: 432px;
}

/* Enlarge second team member photo (img 6) */
.team-member:nth-child(2) .team-photo {
    width: 600px;
    height: 480px;
}

/* Enlarge third team member photo (img 7) */
.team-member:nth-child(3) .team-photo {
    width: 600px;
    height: 480px;
}


.team-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.6s ease;
    filter: grayscale(20%) brightness(1.1);
}


.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}


.team-info {
    padding: 2rem 0;
    transition: all 0.6s ease;
}


.team-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}


.team-role {
    font-size: 1.1rem;
    font-weight: 500;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
}

.team-role::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    transition: width 0.4s ease;
}

.team-member:nth-child(even) .team-role::after {
    right: 0;
    left: auto;
}


.team-description {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1rem;
    max-width: 600px;
}

.team-role-desc {
    font-weight: bold;
    color: #333333;
}

.team-member:nth-child(even) .team-description {
    margin-left: auto;
}


/* Contact Section */
.contact-section {
    background: #ffffff;
    padding: 1rem 0 8rem 0; /* Reduced top padding from 8rem to 4rem */
}

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

#contact .contact-content {
    grid-template-columns: 1fr;
    justify-items: center;
    justify-content: center;
    align-items: center;
}

#contact .contact-info {
    text-align: center;
}

#contact .contact-details {
    align-items: center;
}

#contact .contact-item {
    align-items: center;
    text-align: center;
}

#contact .contact-label {
    font-size: 1.1rem;
}

#contact .contact-value {
    font-size: 1.25rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    font-size: 0.9rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.contact-value {
    font-size: 1.1rem;
    color: #333333;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-value:hover {
    color: #ff6b35;
    text-decoration: underline;
}

.contact-cta {
    text-align: center;
}

.cta-button.secondary {
    border-color: #333333;
    color: #333333;
}

.cta-button.secondary .button-bg {
    background: #333333;
}

.cta-button.secondary:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    background: #000000;
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffffff;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

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

.footer-bottom p {
    color: #666666;
    font-size: 0.9rem;
}

.footer-bottom .terms-applied {
    color: #999999;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Social Media Icons */
.social-media-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
}

.social-icon.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-icon.facebook:hover {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
    border-color: #1877f2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.social-icon.twitter:hover {
    background: #000000;
    border-color: #000000;
}

.social-icon.threads:hover {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    border-color: #ffffff;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transform: translateY(-3px) scale(1.05);
}

.social-icon.linkedin:hover {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    border-color: #0077b5;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.social-icon.whatsapp:hover {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    border-color: #25d366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    transform: translateY(-3px) scale(1.05);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.15) rotate(5deg);
}

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

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(30px);
        -moz-transform: translateY(30px);
        -ms-transform: translateY(30px);
        -o-transform: translateY(30px);
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-moz-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-o-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@-moz-keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@-o-keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.scroll-arrow {
    display: block;
    margin-top: 12px;
    animation: smoothBounce 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

@keyframes smoothBounce {
    0% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(12px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }
}

@-webkit-keyframes smoothBounce {
    0% {
        -webkit-transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        -webkit-transform: translateY(12px);
        opacity: 1;
    }
    100% {
        -webkit-transform: translateY(0);
        opacity: 0.7;
    }
}

@-moz-keyframes smoothBounce {
    0% {
        -moz-transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        -moz-transform: translateY(12px);
        opacity: 1;
    }
    100% {
        -moz-transform: translateY(0);
        opacity: 0.7;
    }
}

@-o-keyframes smoothBounce {
    0% {
        -o-transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        -o-transform: translateY(12px);
        opacity: 1;
    }
    100% {
        -o-transform: translateY(0);
        opacity: 0.7;
    }
}

@-webkit-keyframes videoZoomInSmooth {
    0% {
        -webkit-transform: scale(1.3) rotate(0.5deg);
        transform: scale(1.3) rotate(0.5deg);
        opacity: 0;
        -webkit-filter: brightness(0.8) contrast(1.3) blur(2px);
        filter: brightness(0.8) contrast(1.3) blur(2px);
    }
    25% {
        opacity: 0.5;
        -webkit-filter: brightness(0.9) contrast(1.35) blur(1px);
        filter: brightness(0.9) contrast(1.35) blur(1px);
    }
    50% {
        opacity: 0.7;
        -webkit-transform: scale(1.15) rotate(0deg);
        transform: scale(1.15) rotate(0deg);
        -webkit-filter: brightness(1.0) contrast(1.4) blur(0.5px);
        filter: brightness(1.0) contrast(1.4) blur(0.5px);
    }
    75% {
        opacity: 0.85;
        -webkit-transform: scale(1.05) rotate(0deg);
        transform: scale(1.05) rotate(0deg);
        -webkit-filter: brightness(1.05) contrast(1.4) blur(0px);
        filter: brightness(1.05) contrast(1.4) blur(0px);
    }
    100% {
        -webkit-transform: scale(1) rotate(0deg);
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
        -webkit-filter: brightness(1.1) contrast(1.4) blur(0px);
        filter: brightness(1.1) contrast(1.4) blur(0px);
    }
}

@-moz-keyframes videoZoomInSmooth {
    0% {
        -moz-transform: scale(1.3) rotate(0.5deg);
        transform: scale(1.3) rotate(0.5deg);
        opacity: 0;
        filter: brightness(0.8) contrast(1.3) blur(2px);
    }
    25% {
        opacity: 0.5;
        filter: brightness(0.9) contrast(1.35) blur(1px);
    }
    50% {
        opacity: 0.7;
        -moz-transform: scale(1.15) rotate(0deg);
        transform: scale(1.15) rotate(0deg);
        filter: brightness(1.0) contrast(1.4) blur(0.5px);
    }
    75% {
        opacity: 0.85;
        -moz-transform: scale(1.05) rotate(0deg);
        transform: scale(1.05) rotate(0deg);
        filter: brightness(1.05) contrast(1.4) blur(0px);
    }
    100% {
        -moz-transform: scale(1) rotate(0deg);
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
        filter: brightness(1.1) contrast(1.4) blur(0px);
    }
}

@-o-keyframes videoZoomInSmooth {
    0% {
        -o-transform: scale(1.3) rotate(0.5deg);
        transform: scale(1.3) rotate(0.5deg);
        opacity: 0;
        filter: brightness(0.8) contrast(1.3) blur(2px);
    }
    25% {
        opacity: 0.5;
        filter: brightness(0.9) contrast(1.35) blur(1px);
    }
    50% {
        opacity: 0.7;
        -o-transform: scale(1.15) rotate(0deg);
        transform: scale(1.15) rotate(0deg);
        filter: brightness(1.0) contrast(1.4) blur(0.5px);
    }
    75% {
        opacity: 0.85;
        -o-transform: scale(1.05) rotate(0deg);
        transform: scale(1.05) rotate(0deg);
        filter: brightness(1.05) contrast(1.4) blur(0px);
    }
    100% {
        -o-transform: scale(1) rotate(0deg);
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
        filter: brightness(1.1) contrast(1.4) blur(0px);
    }
}

@keyframes videoZoomInSmooth {
    0% {
        -webkit-transform: scale(1.3) rotate(0.5deg);
        -moz-transform: scale(1.3) rotate(0.5deg);
        -ms-transform: scale(1.3) rotate(0.5deg);
        -o-transform: scale(1.3) rotate(0.5deg);
        transform: scale(1.3) rotate(0.5deg);
        opacity: 0;
        -webkit-filter: brightness(0.8) contrast(1.3) blur(2px);
        filter: brightness(0.8) contrast(1.3) blur(2px);
    }
    25% {
        opacity: 0.5;
        -webkit-filter: brightness(0.9) contrast(1.35) blur(1px);
        filter: brightness(0.9) contrast(1.35) blur(1px);
    }
    50% {
        opacity: 0.7;
        -webkit-transform: scale(1.15) rotate(0deg);
        -moz-transform: scale(1.15) rotate(0deg);
        -ms-transform: scale(1.15) rotate(0deg);
        -o-transform: scale(1.15) rotate(0deg);
        transform: scale(1.15) rotate(0deg);
        -webkit-filter: brightness(1.0) contrast(1.4) blur(0.5px);
        filter: brightness(1.0) contrast(1.4) blur(0.5px);
    }
    75% {
        opacity: 0.85;
        -webkit-transform: scale(1.05) rotate(0deg);
        -moz-transform: scale(1.05) rotate(0deg);
        -ms-transform: scale(1.05) rotate(0deg);
        -o-transform: scale(1.05) rotate(0deg);
        transform: scale(1.05) rotate(0deg);
        -webkit-filter: brightness(1.05) contrast(1.4) blur(0px);
        filter: brightness(1.05) contrast(1.4) blur(0px);
    }
    100% {
        -webkit-transform: scale(1) rotate(0deg);
        -moz-transform: scale(1) rotate(0deg);
        -ms-transform: scale(1) rotate(0deg);
        -o-transform: scale(1) rotate(0deg);
        transform: scale(1) rotate(0deg);
        opacity: 0.9;
        -webkit-filter: brightness(1.1) contrast(1.4) blur(0px);
        filter: brightness(1.1) contrast(1.4) blur(0px);
    }
}

@keyframes videoZoomIn {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* Responsive Design */

/* Desktop Large (1400px+) */
@media (min-width: 1400px) {
    /* Video Showcase Large Desktop - 4 cards with no gap */
    .video-showcase {
        gap: 0;
        padding: 2.5rem 0 4rem;
    }
    
    .video-wrapper {
        height: 650px;
    }
    
    .video-title {
        font-size: 1.4rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .work-collage {
        max-width: 1400px;
        height: 1200px;
    }
    
    .collage-top {
        width: 550px;
        height: 440px;
    }
    
    .collage-right {
        width: 500px;
        height: 400px;
        top: 180px;
    }
    
    .collage-left {
        width: 520px;
        height: 420px;
        top: 700px;
    }
}

/* Laptop (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
    .work-collage {
        max-width: 1000px;
        height: 950px;
    }
    
    .collage-top {
        width: 420px;
        height: 340px;
    }
    
    .collage-right {
        width: 380px;
        height: 310px;
        top: 150px;
    }
    
    .collage-left {
        width: 400px;
        height: 320px;
        top: 550px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .work-section {
        padding: 3rem 0 4rem;
    }
    
    /* Video Showcase Tablet - 2 cards per row */
    .video-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        padding: 1.5rem 0 3rem;
    }
    
    .video-wrapper {
        height: 550px;
    }
    
    .video-content {
        padding: 1.5rem;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .tag {
        font-size: 0.75rem;
    }
    
    .work-collage {
        max-width: 700px;
        height: 750px;
    }
    
    .collage-top {
        width: 360px;
        height: 290px;
        top: 0;
    }
    
    .collage-right {
        width: 340px;
        height: 270px;
        top: 120px;
        right: 20px;
    }
    
    .collage-left {
        width: 350px;
        height: 280px;
        top: 420px;
        left: 20px;
    }

    /* Team Section Tablet */
    .team-member {
        grid-template-columns: 400px 1fr;
        gap: 3rem;
    }

    .team-member:nth-child(even) {
        grid-template-columns: 1fr 400px;
    }

    .team-photo {
        width: 400px;
        height: 320px;
    }

    /* Enlarge first team member photo on tablet */
    .team-member:first-child .team-photo {
        width: 480px;
        height: 384px;
    }

    /* Enlarge second team member photo on tablet */
    .team-member:nth-child(2) .team-photo {
        width: 480px;
        height: 384px;
    }

    /* Enlarge third team member photo on tablet */
    .team-member:nth-child(3) .team-photo {
        width: 480px;
        height: 384px;
    }

    .team-name {
        font-size: 1.8rem;
    }

    .team-role {
        font-size: 1rem;
    }

    .team-description {
        font-size: 1rem;
    }


}

/* Mobile Large (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .work-section {
        padding: 2rem 0 2rem;
    }
    
    /* Video Showcase Mobile Large - 1 card per row */
    .video-showcase {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 1rem 0 2rem;
    }
    
    .video-wrapper {
        height: 500px;
    }
    
    .video-content {
        padding: 1.5rem;
    }
    
    .video-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .video-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .video-tags {
        gap: 0.5rem;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.8rem;
    }
    
    .work-collage {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        max-width: 400px;
    }
    
    .work-item {
        position: static;
        width: 100% !important;
        height: 320px !important;
        transform: none !important;
    }
    
    .collage-top:hover,
    .work-item:hover {
        transform: translateY(-10px) scale(1.02) !important;
    }
    
    .work-image {
        height: 100%;
    }

    /* Team Section Mobile Large */
    .team-section {
        padding: 0 0 1.5rem 0; /* Reduced bottom padding for mobile */
    }
    
    .team-grid {
        gap: 2.5rem;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .team-member:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .team-member:nth-child(even) .team-photo {
        order: 0;
    }

    .team-member:nth-child(even) .team-info {
        order: 0;
        text-align: center;
    }

    .team-photo {
        width: 100%;
        max-width: 300px;
        height: 300px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
    }

    .team-img {
        border-radius: 12px;
    }

    .team-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .team-role {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .team-role::after {
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
    }

    .team-member:nth-child(even) .team-role::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .team-description {
        margin: 0 auto;
        font-size: 0.95rem;
        max-width: 100%;
        padding: 0 1rem;
    }

    .team-role-desc {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .contact-section {
        padding: 0.75rem 0 5rem 0; /* Reduced spacing for mobile large */
    }

}

/* Mobile video optimizations */
@media (max-width: 768px) {
    .hero-video {
        transform: scale(1.05);
        animation: videoZoomInMobileSmooth 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    @keyframes videoZoomInMobileSmooth {
        0% {
            transform: scale(1.25) rotate(0.3deg);
            opacity: 0;
            filter: brightness(0.7) contrast(1.15) blur(1.5px);
        }
        30% {
            opacity: 0.4;
            filter: brightness(0.75) contrast(1.1) blur(0.8px);
        }
        60% {
            opacity: 0.6;
            transform: scale(1.1) rotate(0deg);
            filter: brightness(0.8) contrast(1.05) blur(0.3px);
        }
        100% {
            transform: scale(1) rotate(0deg);
            opacity: 0.75;
            filter: brightness(0.85) contrast(1.1) blur(0px);
        }
    }
    
    @keyframes videoZoomInMobile {
        0% {
            transform: scale(1.15);
            opacity: 0;
        }
        50% {
            opacity: 0.5;
        }
        100% {
            transform: scale(1);
            opacity: 0.7;
        }
    }
}

/* Tablet (481px - 1023px) */
@media (max-width: 1023px) and (min-width: 481px) {
    .nav-logo-img {
        height: 36px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
}

/* Mobile Small (320px - 480px) */
@media (max-width: 480px) {
    .nav-logo-img {
        height: 32px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1.25rem 0;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }
    
    .language-switcher {
        display: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .work-section {
        padding: 1.5rem 0 2rem;
    }
    
    /* Video Showcase Mobile Small - 1 card per row */
    .video-showcase {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.5rem 0 1rem;
    }
    
    .video-wrapper {
        height: 450px;
    }
    
    .video-content {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .video-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .video-tags {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }
    
    .work-collage {
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .work-item {
        position: static;
        width: 100% !important;
        height: 280px !important;
        transform: none !important;
        border-radius: 12px;
    }
    
    .collage-top:hover,
    .work-item:hover {
        transform: translateY(-8px) scale(1.01) !important;
    }
    
    .work-image {
        height: 100%;
        border-radius: 12px;
    }

    /* Team Section Mobile Small */
    .team-section {
        padding: 0 0 1rem 0; /* Reduced bottom padding for small mobile */
    }
    
    .team-grid {
        gap: 2rem;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 0.25rem;
        text-align: center;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(8px);
        margin: 0 0.5rem;
    }

    .team-member:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .team-member:nth-child(even) .team-photo {
        order: 0;
    }

    .team-member:nth-child(even) .team-info {
        order: 0;
        text-align: center;
    }

    .team-photo {
        width: 100%;
        max-width: 250px;
        height: 250px;
        margin: 0 auto;
        border-radius: 8px;
        overflow: hidden;
    }

    .team-img {
        border-radius: 8px;
    }

    .team-name {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .team-role {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .team-role::after {
        left: 50%;
        transform: translateX(-50%);
        width: 35px;
    }

    .team-member:nth-child(even) .team-role::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .team-description {
        font-size: 0.8rem;
        margin: 0 auto;
        max-width: 100%;
        line-height: 1.5;
        padding: 0 0.5rem;
    }

    .team-member:nth-child(even) .team-description {
        margin: 0 auto;
    }
    
    .team-role-desc {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .contact-section {
        padding: 0.5rem 0 5rem 0; /* Reduced spacing for mobile small */
    }

}

/* Services Section - Mobile Adjustments */
@media screen and (max-width: 768px) {
    .service-item {
        background-color: #ffffff;
        padding: 20px;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .service-item h3 {
        font-size: 18px;
        color: #000000;
        margin-bottom: 10px;
    }

    .service-item p {
        font-size: 14px;
        color: #000000;
        line-height: 1.5;
    }
}

/* Ultra-wide screens (1600px+) */
@media (min-width: 1600px) {
    .work-collage {
        max-width: 1600px;
        height: 1300px;
    }
    
    .collage-top {
        width: 600px;
        height: 480px;
    }
    
    .collage-right {
        width: 550px;
        height: 440px;
        top: 200px;
    }
    
    .collage-left {
        width: 570px;
        height: 460px;
        top: 750px;
    }
}

/* Contact Form Styles */
.contact-form-container {
    margin: 3rem 0;
    max-width: 600px;
    width: 100%;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333333;
}

/* About Section Mobile */
@media screen and (max-width: 767px) {
    #about .section-title {
        white-space: nowrap;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

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

.form-group select {
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn .button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.submit-btn:hover .button-bg {
    opacity: 1;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
    opacity: 1;
    transform: translateY(0);
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
    opacity: 1;
    transform: translateY(0);
}

/* Contact Us Button */
.contact-us-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    #contact .contact-us-btn {
        padding: 1.15rem 3.6rem;
        font-size: 1.2rem;
        min-height: 56px;
        min-width: 320px;
    }
}

.contact-us-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.contact-us-btn .button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-us-btn:hover .button-bg {
    opacity: 1;
}

/* Contact Hero Section */
.contact-hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #ffffff;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.back-to-home-container {
    padding: 2rem 0;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 107, 53, 0.1);
    border: 2px solid #ff6b35;
    border-radius: 50px;
    color: #ff6b35;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-home-btn:hover {
    background: #ff6b35;
    color: #ffffff;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.back-to-home-btn svg {
    transition: transform 0.3s ease;
}

.back-to-home-btn:hover svg {
    transform: translateX(-3px);
}

.contact-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.contact-hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section Layout */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

/* Language-specific form adjustments */
body.lang-hi .form-group label,
body.lang-hi .form-group input,
body.lang-hi .form-group select,
body.lang-hi .form-group textarea,
body.lang-hi .submit-btn {
    font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Contact Hero Mobile */
    .contact-hero {
        padding: 6rem 0 3rem;
        min-height: 50vh;
    }
    
    .contact-hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .contact-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .back-to-home-container {
        padding: 1.5rem 0;
    }
    
    .back-to-home-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Contact Content Mobile */
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .contact-info {
        display: contents; /* Make children direct children of contact-content for ordering */
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-info-text {
        order: 2; /* Show contact info text after form */
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .flip-card-section {
        order: 3; /* Show flip card after form */
    }
    
    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Contact Form Mobile */
    .contact-form-container {
        order: 1; /* Show form first on mobile */
        margin: 2rem 0;
        max-width: 100%;
    }
    
    .contact-form {
        padding: 1.5rem;
        border-radius: 16px;
        margin: 0 1rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 1rem;
        border-radius: 10px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
    
    .form-group select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 0.7rem center;
        background-size: 1em;
        padding-right: 2.5rem;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .submit-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 10px;
        width: 100%;
        margin-top: 1rem;
        min-height: 48px; /* Touch target size */
    }
    
    .form-status {
        margin-top: 1rem;
        padding: 0.8rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    /* Contact Us Button Mobile */
    .contact-us-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* CTA Button Mobile */
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
        border-radius: 10px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
    .contact-hero {
        padding: 5rem 0 2rem;
    }
    
    .contact-hero-title {
        font-size: 2rem;
    }
    
    .contact-hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1.5rem;
    }
    
    .back-to-home-container {
        padding: 1.25rem 0;
    }
    
    .back-to-home-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .back-to-home-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .contact-form {
        margin: 0 0.5rem;
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Infinite Scrolling Text Sections */
.infinite-text-container {
    width: 100%;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.infinite-text-section {
    width: 100%;
    height: 50px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.infinite-text-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: absolute;
    height: 100%;
}

.infinite-text-item {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
    margin-right: 4rem;
    display: inline-block;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Left to Right Animation */
.left-to-right .infinite-text-track {
    animation: scrollLeftToRight 25s linear infinite;
    width: calc(200%);
}

@keyframes scrollLeftToRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0%);
    }
}

/* Right to Left Animation */
.right-to-left .infinite-text-track {
    animation: scrollRightToLeft 25s linear infinite;
    width: calc(200%);
}

@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design for Infinite Text */
@media (max-width: 1024px) {
    .infinite-text-section {
        height: 45px;
    }
    
    .infinite-text-item {
        font-size: 1.5rem;
        margin-right: 3rem;
    }
}

@media (max-width: 768px) {
    .infinite-text-section {
        height: 40px;
    }
    
    .infinite-text-item {
        font-size: 1.2rem;
        margin-right: 2.5rem;
    }
    
    /* Slow down animation for mobile phones */
    .left-to-right .infinite-text-track {
        animation: scrollLeftToRight 35s linear infinite !important;
        animation-duration: 35s !important;
    }
    
    .right-to-left .infinite-text-track {
        animation: scrollRightToLeft 35s linear infinite !important;
        animation-duration: 35s !important;
    }
}

@media (max-width: 480px) {
    .infinite-text-section {
        height: 35px;
    }
    
    .infinite-text-item {
        font-size: 1rem;
        margin-right: 2rem;
        letter-spacing: 0.05em;
    }
    
    /* Even slower for smaller phones */
    .left-to-right .infinite-text-track {
        animation: scrollLeftToRight 40s linear infinite !important;
        animation-duration: 40s !important;
    }
    
    .right-to-left .infinite-text-track {
        animation: scrollRightToLeft 40s linear infinite !important;
        animation-duration: 40s !important;
    }
}

/* 3D Flip Card Styles */
.flip-card-section {
    padding: 2rem 0;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    width: 100%;
    overflow: visible;
    border: none;
    margin: 0;
}

.flip-card {
    background-color: transparent;
    width: 600px;
    height: 350px;
    perspective: 1000px;
    margin: 0 auto;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    cursor: pointer;
    will-change: transform;
}

/* Mobile touch optimization - Enhanced approach */
@media (max-width: 768px) {
    .flip-card-section {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .flip-card-inner {
        transition: transform 0.6s ease-out;
        transform-style: flat;
        perspective: none;
        will-change: auto;
    }
    
    .flip-card-front {
        display: block;
    }
    
    .flip-card-back {
        display: none;
        transform: none;
    }
    
    .flip-card.flipped .flip-card-front {
        display: none;
    }
    
    .flip-card.flipped .flip-card-back {
        display: block;
    }
}

/* Hover effects - only on devices with precise pointers (desktop) */
@media (hover: hover) and (pointer: fine) {
    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    /* Enhanced hover effects */
    .flip-card:hover .flip-card-front,
    .flip-card:hover .flip-card-back {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    }

    /* Smooth scale animation on hover */
    .flip-card:hover {
        transform: scale(1.02);
        transition: transform 0.3s ease;
    }
    
    /* Subtle image scale on card hover */
    .flip-card:hover .card-image {
        transform: scale(1.05);
    }
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, box-shadow;
}

/* Enhanced mobile shadows and interactions */
@media (max-width: 768px) {
    .flip-card-front, .flip-card-back {
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .flip-card:active .flip-card-front,
    .flip-card:active .flip-card-back {
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
        transform: scale(0.98);
        transition: all 0.2s ease;
    }
}

.flip-card-back {
    transform: rotateY(180deg);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
    background: #ffffff;
}

/* Enhanced image visibility across all devices */
@media (min-width: 1200px) {
    .card-image {
        object-fit: contain;
        object-position: center;
        background: #ffffff;
    }
}

@media (max-width: 1199px) and (min-width: 1024px) {
    .card-image {
        object-fit: contain;
        object-position: center;
        background: #ffffff;
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    .card-image {
        object-fit: contain;
        object-position: center;
        background: #ffffff;
        border-radius: 14px;
    }
}

/* Mobile image optimization */
@media (max-width: 768px) {
    .card-image {
               border-radius: 12px;
        object-fit: contain;
        object-position: center;
        max-width: 100%;
        height: 100%;
        background: #ffffff;
    }
}

/* Enhanced mobile visibility */
@media (max-width: 480px) {
    .card-image {
        object-fit: contain;
        object-position: center;
        background: #ffffff;
        border-radius: 10px;
    }
}

@media (max-width: 360px) {
    .card-image {
        object-fit: contain;
        object-position: center;
        background: #ffffff;
        border-radius: 8px;
       }
}

/* Responsive Design for 3D Card */
@media (max-width: 1200px) {
    .flip-card {
        width: 500px;
        height: 300px;
    }
    
    .flip-card-section {
        padding: 2rem 0;
        background: #ffffff;
        border: none;
        margin: 0;
    }
    
    /* Slightly faster animation on smaller screens */
    .flip-card-inner {
        transition: transform 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@media (max-width: 1024px) {
    .flip-card {
        width: 450px;
        height: 270px;
    }
    
    .flip-card-section {
        padding: 1.5rem 0;
        background: #ffffff;
        border: none;
        margin: 0;
    }
    
    /* Optimized animation for tablets */
    .flip-card-inner {
        transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

@media (max-width: 768px) {
    .flip-card-section {
        padding: 1.5rem 1rem;
        min-height: 280px;
        background: #ffffff;
        display: block;
        text-align: center;
        border: none;
        margin: 0;
    }
    
    .flip-card {
        width: 90%;
        max-width: 400px;
        height: 240px;
        margin: 0 auto;
        display: block;
        position: relative;
        transform: none;
    }
    
    /* Disable hover scale on mobile */
    .flip-card:hover {
        transform: none;
    }
    
    /* Ensure visibility on mobile */
    .flip-card-inner {
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .flip-card-front, .flip-card-back {
        position: relative;
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        margin-bottom: 1rem;
    }
    
    .flip-card-back {
        transform: none;
        display: none;
    }
    
    .flip-card:active .flip-card-back {
        display: block;
    }
    
    .flip-card:active .flip-card-front {
        display: none;
    }
}

@media (max-width: 600px) {
    .flip-card-section {
        padding: 1.5rem 1rem;
        min-height: 250px;
        background: #ffffff;
        border: none;
        margin: 0;
    }
    
    .flip-card {
        width: 95%;
        max-width: 350px;
        height: 210px;
    }
    
    /* Enhanced mobile touch feedback */
    .flip-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

@media (max-width: 480px) {
    .flip-card-section {
        padding: 1.5rem 1rem;
        min-height: 220px;
        background: #ffffff;
        border: none;
        margin: 0;
    }
    
    .flip-card {
        width: 95%;
        max-width: 320px;
        height: 190px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Faster touch response on small screens */
    .flip-card:active {
        transform: scale(0.96);
        transition: transform 0.08s ease;
    }
}

@media (max-width: 360px) {
    .flip-card-section {
        padding: 1rem 0.5rem;
        min-height: 200px;
        background: #ffffff;
        border: none;
        margin: 0;
    }
    
    .flip-card {
        width: 95%;
        max-width: 280px;
        height: 170px;
    }
    
    /* Ultra-responsive touch feedback */
    .flip-card:active {
        transform: scale(0.95);
        transition: transform 0.05s ease;
    }
}

@media (max-width: 320px) {
    .flip-card-section {
        padding: 1rem 0.5rem;
        min-height: 180px;
        background: #ffffff;
        border: none;
        margin: 0;
    }
    
    .flip-card {
        width: 95%;
        max-width: 260px;
        height: 155px;
    }
    
    /* Minimal touch feedback for very small screens */
    .flip-card:active {
        transform: scale(0.97);
        transition: transform 0.05s ease;
    }
}

/* ========================================
   MOBILE-FIRST OPTIMIZATIONS FOR PHONES
   ======================================== */

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Optimize animations for mobile performance - exclude infinite text */
    *:not(.infinite-text-track) {
        animation-duration: 0.8s !important;
    }
    
    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* Container mobile optimization */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Navigation mobile optimization */
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .nav-logo-img {
        height: 35px;
    }
    
    /* Hamburger menu visibility */
    .hamburger {
        display: flex;
        z-index: 10001;
        padding: 0.5rem;
        -webkit-tap-highlight-color: transparent;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 0;
        padding: 0.65rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.85rem 1rem;
        display: block;
        min-height: 44px;
    }
    
    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* Language switcher mobile */
    .language-switcher {
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }
    
    /* Hero section mobile optimization */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    /* Scroll indicator mobile */
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .scroll-line {
        height: 40px;
    }
    
    .scroll-text {
        font-size: 0.7rem;
    }
    
    /* Section spacing mobile */
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    /* Work section mobile */
    .work-section {
        padding: 2rem 0 1rem;
    }
    
    /* Video showcase mobile - single column */
    .video-showcase {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0 2rem;
    }
    
    .video-container {
        border-radius: 8px;
        margin: 0 0.5rem;
    }
    
    .video-wrapper {
        height: 400px;
    }
    
    .showcase-video {
        /* Optimize video for mobile */
        will-change: auto;
    }
    
    .video-content {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .video-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .video-tags {
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* View more button mobile */
    .view-more-container {
        padding: 2rem 1rem;
    }
    
    .view-more-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 50px;
        width: 100%;
        max-width: 300px;
    }
    
    /* Services section mobile */
    .services-section {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .service-item h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }
    
    .service-item p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* About section mobile */
    .about-section {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text {
        padding: 0 0.5rem;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Team section mobile */
    .team-section {
        padding: 3rem 0;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team-photo {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .team-name {
        font-size: 1.5rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Contact section mobile */
    .contact-section {
        padding: 3rem 0 2rem;
    }
    
    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 0.5rem;
    }
    
    .contact-info {
        display: contents; /* Make children direct children of contact-content for ordering */
        text-align: center;
    }
    
    .contact-info-text {
        order: 2; /* Show contact info text after form */
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .flip-card-section {
        order: 3; /* Show flip card after form */
    }
    
    .contact-form-container {
        order: 1; /* Show form first on mobile */
    }
    
    .contact-info p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .contact-label {
        font-size: 0.85rem;
    }
    
    .contact-value {
        font-size: 1rem;
        word-break: break-all;
    }
    
    .contact-us-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 50px;
        width: 100%;
        max-width: 280px;
    }
    
    /* CTA buttons mobile optimization */
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        min-height: 50px;
        border-radius: 6px;
    }
    
    /* Footer mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .social-media-icons {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* Infinite text mobile */
    .infinite-text-item {
        font-size: 1.5rem;
        padding: 0 1.5rem;
    }
    
    /* Touch-friendly interactions */
    a, button, .nav-link, .cta-button, .view-more-btn {
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
        touch-action: manipulation;
    }
    
    /* Prevent zoom on input focus */
    input, textarea, select {
        font-size: 16px !important;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Extra small phones (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .video-wrapper {
        height: 300px;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-description {
        font-size: 0.85rem;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .team-photo {
        height: 250px;
    }
    
    .infinite-text-item {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

/* Very small phones (max-width: 360px) */
@media (max-width: 360px) {
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .nav-logo-img {
        height: 30px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .video-wrapper {
        height: 250px;
    }
    
    .video-content {
        padding: 0.75rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-description {
        font-size: 0.8rem;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .service-item {
        padding: 1.25rem;
    }
    
    .service-item h3 {
        font-size: 1.1rem;
    }
    
    .service-item p {
        font-size: 0.85rem;
    }
}

/* Landscape orientation optimization for phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .video-wrapper {
        height: 350px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        /* Fix for iOS Safari viewport height */
        .hero {
            min-height: -webkit-fill-available;
        }
        
        /* Note: Removed problematic body fixed positioning that caused black screen */
        /* iPhone-specific fixes are now in iphone-styles.css */
    }
}

/* High DPI screens (Retina displays) */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
       (max-width: 768px) and (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero-video,
    .showcase-video {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
}

/* ========================================= */
/* Device-Specific Optimizations */
/* ========================================= */

/* Apple iOS Devices (iPhone, iPad) */
.device-apple {
    /* iOS Safari specific optimizations */
    -webkit-overflow-scrolling: touch;
}

.device-apple .hero {
    /* Fix for iOS Safari address bar */
    min-height: -webkit-fill-available;
}

.device-apple video {
    /* iOS video optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Samsung Devices */
.device-samsung {
    /* Samsung Internet browser optimizations */
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
}

.device-samsung video {
    /* Samsung video optimization */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Xiaomi Devices (Mi, Redmi, POCO) */
.device-xiaomi {
    /* MIUI browser optimizations */
    -webkit-font-smoothing: antialiased;
}

.device-xiaomi video {
    /* Xiaomi X5 browser video optimization */
    object-fit: cover;
    -o-object-fit: cover;
}

.device-xiaomi .hero-video,
.device-xiaomi .showcase-video {
    /* Better video rendering on MIUI */
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Oppo Devices */
.device-oppo {
    /* ColorOS browser optimizations */
    -webkit-font-smoothing: subpixel-antialiased;
}

.device-oppo video {
    /* Oppo video optimization */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.device-oppo .navbar {
    /* Fix for ColorOS notch */
    padding-top: env(safe-area-inset-top);
}

/* Vivo Devices */
.device-vivo {
    /* Funtouch OS browser optimizations */
    -webkit-font-smoothing: antialiased;
}

.device-vivo video {
    /* Vivo video optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.device-vivo .hero {
    /* Fix for Vivo notch/punch-hole */
    padding-top: env(safe-area-inset-top);
}

/* OnePlus Devices */
.device-oneplus {
    /* OxygenOS browser optimizations */
    -webkit-font-smoothing: antialiased;
}

.device-oneplus video {
    /* OnePlus video optimization */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.device-oneplus .navbar {
    /* Fix for OnePlus notch */
    padding-top: env(safe-area-inset-top);
}

/* Nothing Phone */
.device-nothing {
    /* Nothing OS browser optimizations */
    -webkit-font-smoothing: antialiased;
}

.device-nothing video {
    /* Nothing Phone video optimization */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.device-nothing .hero {
    /* Fix for Nothing Phone punch-hole */
    padding-top: env(safe-area-inset-top);
}

/* Android Devices (General) */
.device-android {
    /* General Android optimizations */
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
}

.device-android video {
    /* Android video optimization */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* All Mobile Devices */
.device-mobile {
    /* Mobile-specific optimizations */
    -webkit-overflow-scrolling: touch;
}

.device-mobile * {
    /* Optimize touch interactions */
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
    -webkit-touch-callout: none;
}

.device-mobile button,
.device-mobile a,
.device-mobile .nav-link,
.device-mobile .cta-button {
    /* Larger touch targets for mobile */
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.device-mobile .hamburger {
    /* Larger hamburger menu for easier tapping */
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
}

/* Safe Area Insets for Notch/Punch-hole Devices */
@supports (padding: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .hero {
        padding-top: env(safe-area-inset-top);
    }
    
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Landscape Mode Optimizations for Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .nav-logo-img {
        height: 32px;
    }
}

/* High Refresh Rate Display Support (90Hz, 120Hz, 144Hz) */
@media (prefers-reduced-motion: no-preference) {
    .device-mobile * {
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Low Power Mode Detection */
@media (prefers-reduced-motion: reduce) {
    .device-mobile * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .device-mobile video {
        animation: none !important;
    }
}

/* Foldable Phone Support */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .device-mobile .container {
        max-width: 100%;
        padding: 0 3rem;
    }
    
    .device-mobile .hero-title {
        font-size: clamp(4rem, 8vw, 6rem);
    }
}

/* Small Screen Phones (< 375px) */
@media (max-width: 374px) {
    .device-mobile .container {
        padding: 0 1rem;
    }
    
    .device-mobile .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    
    .device-mobile .cta-button {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .device-mobile .nav-logo h2 {
        font-size: 1rem;
    }
}

/* Large Screen Phones (> 428px) */
@media (min-width: 428px) and (max-width: 768px) {
    .device-mobile .hero-title {
        font-size: clamp(3.5rem, 8vw, 5rem);
    }
    
    .device-mobile .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ========================================
   CLIENT REVIEW SECTION STYLES
   ======================================== */

.client-review-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.client-review-section .section-title {
    margin-bottom: 3rem;
    text-align: center;
}

.client-review-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.client-video-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.client-video-card:hover .video-thumbnail {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

.client-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.client-video-card:hover .play-button-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.client-video-card:hover .play-icon {
    transform: scale(1.1);
}

/* ========================================
   VIDEO MODAL STYLES
   ======================================== */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 10000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.video-player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.modal-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ========================================
   RESPONSIVE DESIGN - CLIENT REVIEW
   ======================================== */

@media (max-width: 1024px) {
    .client-review-section {
        padding: 3rem 0;
    }
    
    .client-video-card {
        max-width: 450px;
    }
}

@media (max-width: 768px) {
    .client-review-section {
        padding: 2rem 0;
    }
    
    .client-review-section .section-title {
        margin-bottom: 2rem;
    }
    
    .client-review-container {
        display: flex;
        gap: 1.5rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .client-video-card {
        flex: 0 0 calc(50% - 0.75rem);
        min-width: 280px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .client-review-section {
        padding: 1.5rem 0;
    }
    
    .client-review-section .section-title {
        margin-bottom: 1.5rem;
        font-size: 1.8rem;
    }
    
    .client-review-container {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
        margin: 0 -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        scroll-snap-type: x mandatory;
        flex-wrap: nowrap;
    }
    
    .client-review-container::-webkit-scrollbar {
        height: 6px;
    }
    
    .client-review-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .client-review-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
    }
    
    .client-review-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }
    
    .client-video-card {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 240px;
        scroll-snap-align: start;
    }
    
    .modal-content {
        width: 98%;
        max-height: 80vh;
        border-radius: 12px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .modal-close svg {
        width: 24px;
        height: 24px;
    }
}
