
/* Team Section */
.dev-team-section {
    padding: 30px 0;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 50%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.dev-team-section::before,
.dev-team-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.dev-team-section::before {
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(100, 29, 175, 0.05) 0%, transparent 70%);
}

.dev-team-section::after {
    bottom: -30%;
    left: -15%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 0, 176, 0.03) 0%, transparent 70%);
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

.dev-team-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 ;
    position: relative;
    z-index: 1;
}

.dev-team-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 1s ease forwards;
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dev-team-header h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.dev-team-header span {
    display: block;
    font-weight: 900;
    font-size: 1.6rem;
    color: #641DAF;
    margin-top: 16px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
}

.dev-team-header p {
    color: #4A4A4A;
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 30px auto 0;
}

/* Carousel Container */
.dev-carousel-container {
    position: relative;
    margin-top: 60px;
}

.dev-carousel-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0 40px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.dev-carousel-track {
    display: flex;
    gap: 35px;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.dev-carousel-track:hover {
    animation-play-state: paused;
}

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

.dev-member-card {
    flex: 0 0 300px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.98));
    border: 1px solid rgba(100, 29, 175, 0.15);
    border-radius: 24px;
    overflow: hidden;
    text-align: left;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dev-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #6C00B0, #641DAF, #8B4BC4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dev-member-card:hover::before {
    opacity: 1;
}

.dev-member-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(145deg, rgba(100, 29, 175, 0.2), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.dev-member-card:hover::after {
    opacity: 1;
}

.dev-member-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(100, 29, 175, 0.3);
    box-shadow: 
        0 25px 60px rgba(100, 29, 175, 0.2),
        0 0 80px rgba(100, 29, 175, 0.1);
}

.dev-member-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #F8F9FA, #FFFFFF);
}

.dev-member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(1.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dev-member-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.08);
}

.dev-member-info {
    padding: 28px 24px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    position: relative;
}

.dev-member-role-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(100, 29, 175, 0.1);
    border: 1px solid rgba(100, 29, 175, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #641DAF;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.dev-member-info h3 {
    font-size: 1.4rem;
    color: #1A1A1A;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.dev-member-card:hover .dev-member-info h3 {
    color: #641DAF;
}

.dev-member-info p {
    font-size: 0.9rem;
    color: #4A4A4A;
    line-height: 1.6;
    font-weight: 400;
}

/* Why Choose Us Section */
.why-choose-tech {
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.why-tech-container {
    display: flex;
    align-items: stretch;
    max-width: 1400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(100, 29, 175, 0.15);
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.why-tech-left {
    flex: 1;
    background: linear-gradient(135deg, #cdb8db 0%, #641DAF 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    opacity: 0;
    transform: translateX(-120px) scale(0.9);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.why-tech-left.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.why-tech-left h2 {
    font-size: 3rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.why-tech-left .tech-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.tech-team-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 16px;
    position: relative;
    z-index: 2;
}

.why-tech-right {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(248, 249, 250, 0.95);
    opacity: 0;
    transform: translateX(120px) scale(0.9);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---- Animated decorative blobs (CSS-only, lightweight) ---- */
.why-choose-tech::before,
.why-choose-tech::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.15;
    pointer-events: none;
    animation: drift 14s ease-in-out infinite;
}
.why-choose-tech::before {
    width: 420px; height: 420px;
    background: radial-gradient(circle at 30% 30%, #6C00B0, transparent 60%);
    top: -120px; left: -120px;
}
.why-choose-tech::after {
    width: 360px; height: 360px;
    background: radial-gradient(circle at 60% 60%, #8B5CF6, transparent 60%);
    bottom: -140px; right: -120px;
    animation-direction: reverse;
}
@keyframes drift {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(25px,-25px) scale(1.06); }
}

/* ---- Image shine + soft float ---- */
.tech-team-image {
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    transform: translateZ(0);
}
.tech-team-image::after {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.65) 50%, transparent 100%);
    transform: skewX(-20deg);
}
.why-tech-left.show .tech-team-image::after {
    animation: shineSweep 2.2s ease 0.6s forwards;
}
.why-tech-left.show .tech-team-image {
    animation: softFloat 6s ease-in-out 1.2s infinite;
}
@keyframes shineSweep {
    0% { left: -120%; }
    100% { left: 140%; }
}
@keyframes softFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---- Badges + headings animated gradient ---- */
.tech-advantage-badge {
    background: linear-gradient(135deg, #6C00B0, #641DAF, #8B5CF6);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}
.tech-innovation-badge {
    background-image: linear-gradient(135deg, #6C00B0, #641DAF, #8B5CF6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Stats: subtle glow + lift on hover, staggered reveal ---- */
.tech-stats-grid { position: relative; }
.tech-stat-item {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.75));
    border: 1px solid rgba(100,29,175,.12);
    border-radius: 14px;
    padding: 18px 16px;
    box-shadow: 0 10px 24px rgba(100,29,175,.08);
    transform: translateZ(0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-stat-item:hover {
    transform: translateY(-6px);
    border-color: rgba(100,29,175,.28);
    box-shadow: 0 20px 44px rgba(100,29,175,.18);
}
.tech-stat-item::after {
    content: '';
    position: absolute; inset: 0; border-radius: 14px;
    background: radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), rgba(139,92,246,.15), transparent 60%);
    opacity: 0; transition: opacity .2s ease;
}
.tech-stat-item:hover::after { opacity: 1; }

.why-tech-right.show .tech-stat-item { transition-delay: .05s; }
.why-tech-right.show .tech-stat-item:nth-child(2) { transition-delay: .12s; }
.why-tech-right.show .tech-stat-item:nth-child(3) { transition-delay: .18s; }
.why-tech-right.show .tech-stat-item:nth-child(4) { transition-delay: .24s; }

.stat-number {
    background: linear-gradient(135deg, #1A1A1A 0%, #6C00B0 60%, #8B5CF6 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    background-size: 180% 180%;
    animation: gradientShift 7s ease infinite;
}

/* Pointer glow follows mouse inside stat card */
.tech-stats-grid .tech-stat-item {
    --mx: 50%; --my: 50%;
}


.why-tech-right.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.tech-advantage-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6C00B0, #c3acdb);
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-innovation-badge {
    color: #1A1A1A;
    font-size: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

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

.tech-stat-item {
    text-align: left;
}

.tech-stat-item .stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #6C00B0, #641DAF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-stat-item .stat-label {
    color: #1A1A1A;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tech-stat-item .stat-description {
    color: #4A4A4A;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tech-footer-text {
    margin-top: 2rem;
    color: #4A4A4A;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Company Tour Section */
.company-tour-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 80px 20px;
    /* background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%); */
    overflow: hidden;
}

.tour-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr; /* left column removed */
    gap: 30px;
    height: 100%;
    min-height: 600px;
}

/* Tour Frames */
.tour-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.tour-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Left Frame - Product Demo */
.tour-frame-left {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    position: relative;
}

.frame-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.demo-screen {
    background: #000;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.screen-header h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #641DAF, #6C00B0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-interface {
    position: relative;
    margin-bottom: 20px;
}

.chat-message {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(100, 29, 175, 0.1);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(100, 29, 175, 0.2);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #641DAF, #6C00B0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.chat-text p {
    color: #fff;
    margin: 0;
    font-size: 0.9rem;
}

.confetti {
    position: absolute;
    top: -10px;
    right: -10px;
}

.confetti span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ff6b6b;
    margin: 2px;
    border-radius: 50%;
    animation: confetti-fall 2s ease-in-out infinite;
}

.confetti span:nth-child(2) {
    background: #4ecdc4;
    animation-delay: 0.2s;
}

.confetti span:nth-child(3) {
    background: #45b7d1;
    animation-delay: 0.4s;
}

@keyframes confetti-fall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

.steps-list {
    color: #fff;
}

.steps-list h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: #641DAF;
}

.steps-list ul {
    list-style: none;
    padding: 0;
}

.steps-list li {
    font-size: 0.8rem;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.steps-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #641DAF;
}

.presenter {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #641DAF;
    box-shadow: 0 10px 30px rgba(100, 29, 175, 0.3);
}

.presenter img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Center Frame - Video Modal */
.tour-frame-center {
    background: transparent;
    display: grid;
    grid-template-rows: 160px minmax(420px, 1fr) 160px;
    gap: 20px;
    position: relative;
}

/* Center frame video styling */
.center-frame-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.tour-frame-center:hover .center-frame-video {
    opacity: 0.6;
}

/* Ensure content stays above video */
.modal-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.video-modal-preview {
    width: 100%;
    /* height: 100% -> caused overlap across grid rows on some browsers */
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 46px rgba(0,0,0,.12);
    z-index: 1;
}

.modal-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f0f0f0;
}

.abstract-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-purple {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #641DAF, #6C00B0);
    top: 20%;
    left: -10%;
    animation: float-shape 6s ease-in-out infinite;
}

.shape-green {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    bottom: 20%;
    right: -5%;
    animation: float-shape 8s ease-in-out infinite reverse;
}

@keyframes float-shape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.modal-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.global-stats {
    font-size: 4rem;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 0.9;
    letter-spacing: -2px;
}

.play-button-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.modal-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.modal-play-btn:hover::before {
    width: 100%;
    height: 100%;
}

.modal-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
}

.modal-subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Right Frames Container */
.tour-frame-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sub-frame {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.sub-frame:hover {
    transform: scale(1.02);
}

.frame-image {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: relative;
}

.frame-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sub-frame:hover .frame-image img {
    transform: scale(1.05);
}

/* Center column top/bottom frames share right-side style */
.center-top-frame,
.center-bottom-frame {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0,0,0,.12);
    z-index: 2;
}

@media (max-width: 1024px) {
    .tour-frame-center { grid-template-rows: 140px minmax(360px, 1fr) 140px; }
}
@media (max-width: 768px) {
    .tour-frame-center { grid-template-rows: 120px minmax(300px, 1fr) 120px; gap: 16px; }
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(100, 29, 175, 0.8), rgba(108, 0, 176, 0.6)); */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sub-frame:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: rgb(18, 17, 17);
}

.overlay-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Fullscreen video styling */
.video-modal-content:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

.video-modal-content:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

.video-modal-content:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

.video-modal-content:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: none;
    max-height: none;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
}

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

/* Fullscreen video adjustments */
.video-modal-content:fullscreen .video-wrapper {
    padding-bottom: 0;
    height: 100vh;
}

.video-modal-content:fullscreen .video-wrapper video {
    object-fit: cover;
}

.video-modal-content:-webkit-full-screen .video-wrapper {
    padding-bottom: 0;
    height: 100vh;
}

.video-modal-content:-webkit-full-screen .video-wrapper video {
    object-fit: cover;
}

.video-modal-content:-moz-full-screen .video-wrapper {
    padding-bottom: 0;
    height: 100vh;
}

.video-modal-content:-moz-full-screen .video-wrapper video {
    object-fit: cover;
}

.video-modal-content:-ms-fullscreen .video-wrapper {
    padding-bottom: 0;
    height: 100vh;
}

.video-modal-content:-ms-fullscreen .video-wrapper video {
    object-fit: cover;
}

.modal-close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    background: #641daf;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close-btn:hover {
    background: #7a1fc7;
    transform: rotate(90deg);
}

/* Video Controls */
.custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal-content:hover .custom-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(100, 29, 175, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: #641daf;
    transform: scale(1.1);
}

.progress-container {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: #641daf;
    border-radius: 5px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    color: white;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: right;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.volume-bar {
    height: 100%;
    background: #641daf;
    border-radius: 5px;
    width: 100%;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(100, 29, 175, 0.3);
    border-top: 4px solid #641daf;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.loading-spinner.show {
    display: block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .tech-services-header { padding: 1rem 4%; }
    .dev-team-section { padding: 80px 6%; }
    .why-tech-container { flex-direction: column; }
    
    .tour-container {
        grid-template-columns: 1fr;
        gap: 20px;
        min-height: auto;
    }
    
    .tour-frame-center {
        order: -1;
        min-height: 400px;
    }
    
    .global-stats {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .tech-services-grid {
        grid-template-columns: 1fr;
    }
    
    .dev-team-container {
        grid-template-columns: 1fr;
    }
    
    .why-tech-container {
        flex-direction: column;
    }
    
    .company-tour-section {
        padding: 60px 15px;
    }
    
    .tour-container {
        gap: 15px;
    }
    
    .tour-frame-left {
        padding: 20px;
    }
    
    .demo-screen {
        max-width: 250px;
        padding: 15px;
    }
    
    .screen-header h3 {
        font-size: 1rem;
    }
    
    .global-stats {
        font-size: 2.5rem;
    }
    
    .modal-play-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .presenter {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 640px) {
    .dev-team-header h2 {
        font-size: 2rem;
    }
    
    .company-tour-section {
        padding: 40px 10px;
    }
    
    .tour-frame {
        border-radius: 15px;
    }
    
    .demo-screen {
        max-width: 200px;
        padding: 10px;
    }
    
    .screen-header h3 {
        font-size: 0.9rem;
    }
    
    .chat-message {
        padding: 10px;
    }
    
    .chat-avatar {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .chat-text p {
        font-size: 0.8rem;
    }
    
    .global-stats {
        font-size: 2rem;
    }
    
    .modal-play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .overlay-content h4 {
        font-size: 1.2rem;
    }
    
    .overlay-content p {
        font-size: 0.9rem;
    }
}

/* Reveal on scroll utilities */
.reveal {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.fade-up {
    transform: translateY(30px);
}

.reveal.fade-in {
    transform: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    #bottomFrameImage {
        display: none;
    }
    
}