:root {
    --primary-blue: #0066cc;
    --light-blue: #4da6ff;
    --dark-blue: #004080;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-light: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas for Three.js */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 5% 2rem;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--dark-blue);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Vision, Mission, Values */
.vision-mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vmv-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vmv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
    border-color: var(--light-blue);
}

.vmv-card h3 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vmv-card .icon {
    font-size: 2.5rem;
}

.vmv-card p, .vmv-card ul {
    color: var(--text-light);
    line-height: 1.8;
}

.vmv-card ul {
    list-style: none;
    padding-left: 0;
}

.vmv-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.vmv-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Impact Stats */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
    border-left-width: 8px;
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: var(--light-blue);
    line-height: 0;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.95rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--dark-blue);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-blue);
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    opacity: 1;
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Team/Executives Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
}

.team-info {
    padding: 2rem;
}

.team-name {
    color: var(--primary-blue);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.team-phone {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--dark-blue);
    transform: scale(1.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.9), transparent);
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    padding: 3rem;
    border-radius: 20px;
    color: var(--white);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-blue);
}

.footer-section p,
.footer-section ul {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        background: var(--white);
        flex-direction: column;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
        transition: right 0.3s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 5%;
    }
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-nav a {
    padding: 0.8rem 1.5rem;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-blue);
    color: var(--white);
}

.admin-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.1);
    margin-bottom: 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.admin-table tr:hover {
    background: var(--light-gray);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
}

.btn-danger:hover {
    background: #c82333;
}

.btn-edit {
    background: #ffc107;
    color: var(--text-dark);
}

.btn-edit:hover {
    background: #e0a800;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
}

.login-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-card h2 {
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}







/*  Advanced style for the 3d animated effects*/


/* Advanced Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger animation for children */
.stagger-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.active {
    opacity: 1;
    transform: translateX(0);
}

/* Parallax sections */
.parallax {
    transition: transform 0.3s ease-out;
}

/* Glassmorphism effect for cards on scroll */
.vmv-card.active,
.service-card.active,
.stat-card.active {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 50px rgba(0, 102, 204, 0.15);
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    animation: float 6s ease-in-out infinite;
}

/* Pulse animation for important elements */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-primary:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* Shimmer effect */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 3s infinite;
}

/* Text reveal animation */
.hero h1 {
    background: linear-gradient(
        90deg,
        var(--primary-blue) 0%,
        var(--light-blue) 50%,
        var(--primary-blue) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text 3s linear infinite;
}

@keyframes gradient-text {
    to { background-position: 200% center; }
}

/* Card hover effects with 3D transform */
.service-card,
.vmv-card,
.team-card {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.vmv-card:hover,
.team-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
}

/* Glow effect on hover */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

/* Slide in from sides */
.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Rotate in animation */
.rotate-in {
    animation: rotateIn 1s ease-out;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Bounce in animation */
.bounce-in {
    animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Background pattern animation */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(77, 166, 255, 0.05) 0%, transparent 50%);
    animation: moveBackground 20s ease infinite;
    z-index: 0;
}

@keyframes moveBackground {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

/* Progress bar animation */
.progress-bar {
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--primary-blue),
        var(--light-blue),
        var(--primary-blue)
    );
    background-size: 200% 100%;
    animation: progressBar 2s linear infinite;
}

@keyframes progressBar {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-blue);
    white-space: nowrap;
    animation: typing 4s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-blue); }
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
    to {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}









/* Mobile optimizations for 3D canvas */
@media (max-width: 768px) {
    #three-canvas-container {
        opacity: 0.7; /* Slightly fade on mobile so content is more visible */
    }
    
    .hero {
        min-height: 80vh; /* Reduce height on mobile */
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Ensure content is always visible over 3D background */
    section {
        position: relative;
        z-index: 10;
    }
    
    /* Add slight background to sections on mobile for better readability */
    section:not(.hero) {
        background: rgba(255, 255, 255, 0.95);
    }
    
    /* Reduce particle opacity on very small screens */
    @media (max-width: 480px) {
        #three-canvas-container {
            opacity: 0.5;
        }
    }
}

/* Tablet optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    #three-canvas-container {
        opacity: 0.85;
    }
}

/* Performance: Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    #three-canvas-container {
        display: none;
    }
    
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

















/* ========================================
   ADVANCED ZOOM-IN SCROLL ANIMATIONS
   ======================================== */

/* Base setup for all animated sections */
section {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Default state - elements start far away and small */
.zoom-in {
    opacity: 0;
    transform: scale(0.3) translateZ(-500px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

.zoom-in.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Zoom from left */
.zoom-left {
    opacity: 0;
    transform: scale(0.3) translateX(-200px) translateZ(-500px) rotateY(45deg);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-left.active {
    opacity: 1;
    transform: scale(1) translateX(0) translateZ(0) rotateY(0);
}

/* Zoom from right */
.zoom-right {
    opacity: 0;
    transform: scale(0.3) translateX(200px) translateZ(-500px) rotateY(-45deg);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-right.active {
    opacity: 1;
    transform: scale(1) translateX(0) translateZ(0) rotateY(0);
}

/* Zoom from top */
.zoom-top {
    opacity: 0;
    transform: scale(0.3) translateY(-200px) translateZ(-500px) rotateX(45deg);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-top.active {
    opacity: 1;
    transform: scale(1) translateY(0) translateZ(0) rotateX(0);
}

/* Zoom from bottom */
.zoom-bottom {
    opacity: 0;
    transform: scale(0.3) translateY(200px) translateZ(-500px) rotateX(-45deg);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-bottom.active {
    opacity: 1;
    transform: scale(1) translateY(0) translateZ(0) rotateX(0);
}

/* Spiral zoom in */
.zoom-spiral {
    opacity: 0;
    transform: scale(0.1) translateZ(-800px) rotate(360deg);
    transition: all 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-spiral.active {
    opacity: 1;
    transform: scale(1) translateZ(0) rotate(0deg);
}

/* Explosive zoom */
.zoom-explode {
    opacity: 0;
    transform: scale(3) translateZ(500px);
    filter: blur(20px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.zoom-explode.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0);
}

/* Stagger delays for children elements */
.stagger-item {
    opacity: 0;
    transform: scale(0.5) translateZ(-300px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.stagger-item.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Individual stagger delays */
.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.15s; }
.stagger-item:nth-child(3) { transition-delay: 0.3s; }
.stagger-item:nth-child(4) { transition-delay: 0.45s; }
.stagger-item:nth-child(5) { transition-delay: 0.6s; }
.stagger-item:nth-child(6) { transition-delay: 0.75s; }
.stagger-item:nth-child(7) { transition-delay: 0.9s; }
.stagger-item:nth-child(8) { transition-delay: 1.05s; }

/* Text zoom effects */
.text-zoom {
    opacity: 0;
    transform: scale(0.1);
    display: inline-block;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.text-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* Word by word zoom */
.word-zoom {
    display: inline-block;
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.word-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* Card flip zoom */
.flip-zoom {
    opacity: 0;
    transform: scale(0.3) rotateY(180deg) translateZ(-500px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    backface-visibility: hidden;
}

.flip-zoom.active {
    opacity: 1;
    transform: scale(1) rotateY(0) translateZ(0);
}

/* 3D rotate zoom */
.rotate-zoom {
    opacity: 0;
    transform: scale(0.2) rotateX(90deg) rotateY(90deg) translateZ(-600px);
    transition: all 1.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.rotate-zoom.active {
    opacity: 1;
    transform: scale(1) rotateX(0) rotateY(0) translateZ(0);
}

/* Pulsating zoom */
@keyframes pulseZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.zoom-in.active,
.zoom-left.active,
.zoom-right.active {
    animation: pulseZoom 2s ease-in-out infinite;
}

/* Hero section special zoom */
.hero {
    perspective: 2000px;
}

.hero-content {
    transform-style: preserve-3d;
}

.hero-content > * {
    opacity: 0;
    transform: scale(0.2) translateZ(-800px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-content > *:nth-child(1) { transition-delay: 0.2s; }
.hero-content > *:nth-child(2) { transition-delay: 0.4s; }
.hero-content > *:nth-child(3) { transition-delay: 0.6s; }
.hero-content > *:nth-child(4) { transition-delay: 0.8s; }

.hero-content.active > * {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

/* Reduce 3D effects on mobile for better performance */
@media (max-width: 768px) {
    /* Simplify transforms for mobile */
    .zoom-in,
    .zoom-left,
    .zoom-right,
    .zoom-top,
    .zoom-bottom {
        transform: scale(0.5) translateY(50px);
        transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .zoom-in.active,
    .zoom-left.active,
    .zoom-right.active,
    .zoom-top.active,
    .zoom-bottom.active {
        transform: scale(1) translateY(0);
    }
    
    /* Disable complex 3D transforms on mobile */
    .zoom-spiral,
    .rotate-zoom,
    .flip-zoom {
        transform: scale(0.5);
    }
    
    .zoom-spiral.active,
    .rotate-zoom.active,
    .flip-zoom.active {
        transform: scale(1);
    }
    
    /* Reduce animation duration for snappier feel */
    .stagger-item {
        transition-duration: 0.6s;
    }
    
    /* Reduce stagger delays */
    .stagger-item:nth-child(1) { transition-delay: 0s; }
    .stagger-item:nth-child(2) { transition-delay: 0.1s; }
    .stagger-item:nth-child(3) { transition-delay: 0.2s; }
    .stagger-item:nth-child(4) { transition-delay: 0.3s; }
    .stagger-item:nth-child(5) { transition-delay: 0.4s; }
    .stagger-item:nth-child(6) { transition-delay: 0.5s; }
    .stagger-item:nth-child(7) { transition-delay: 0.6s; }
    .stagger-item:nth-child(8) { transition-delay: 0.7s; }
    
    /* Disable pulse animation on mobile */
    .zoom-in.active,
    .zoom-left.active,
    .zoom-right.active {
        animation: none;
    }
    
    /* Simplify hero animations */
    .hero-content > * {
        transform: scale(0.6) translateY(30px);
        transition-duration: 0.7s;
    }
    
    .hero-content.active > * {
        transform: scale(1) translateY(0);
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    /* Further simplification for very small screens */
    .zoom-in,
    .zoom-left,
    .zoom-right,
    .zoom-top,
    .zoom-bottom,
    .zoom-spiral,
    .rotate-zoom,
    .flip-zoom {
        transform: scale(0.7) translateY(20px);
        transition-duration: 0.6s;
    }
    
    .zoom-in.active,
    .zoom-left.active,
    .zoom-right.active,
    .zoom-top.active,
    .zoom-bottom.active,
    .zoom-spiral.active,
    .rotate-zoom.active,
    .flip-zoom.active {
        transform: scale(1) translateY(0);
    }
    
    /* Minimal delays on very small screens */
    .stagger-item:nth-child(n) {
        transition-delay: 0.05s;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Moderate 3D effects for tablets */
    .zoom-in,
    .zoom-left,
    .zoom-right {
        transform: scale(0.4) translateZ(-300px);
    }
    
    .zoom-spiral {
        transform: scale(0.2) translateZ(-400px) rotate(180deg);
    }
}

/* High-end devices - full effects */
@media (min-width: 1025px) {
    /* Enable hardware acceleration */
    .zoom-in,
    .zoom-left,
    .zoom-right,
    .zoom-top,
    .zoom-bottom,
    .zoom-spiral,
    .zoom-explode,
    .rotate-zoom,
    .flip-zoom {
        transform: translateZ(0);
        backface-visibility: hidden;
    }
    
    /* Enhanced glow on hover for desktop */
    .vmv-card:hover,
    .service-card:hover,
    .team-card:hover {
        box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
        transform: scale(1.05) translateZ(20px);
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .zoom-in,
    .zoom-left,
    .zoom-right,
    .zoom-top,
    .zoom-bottom,
    .zoom-spiral,
    .zoom-explode,
    .rotate-zoom,
    .flip-zoom,
    .stagger-item,
    .hero-content > * {
        transform: none;
        transition: opacity 0.3s ease;
    }
    
    .zoom-in.active,
    .zoom-left.active,
    .zoom-right.active,
    .zoom-top.active,
    .zoom-bottom.active,
    .zoom-spiral.active,
    .zoom-explode.active,
    .rotate-zoom.active,
    .flip-zoom.active,
    .stagger-item.active,
    .hero-content.active > * {
        opacity: 1;
        transform: none;
    }
    
    /* Disable all animations */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimizations */
.zoom-in,
.zoom-left,
.zoom-right,
.zoom-top,
.zoom-bottom,
.zoom-spiral,
.zoom-explode,
.rotate-zoom,
.flip-zoom {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Remove will-change after animation completes */
.zoom-in.active,
.zoom-left.active,
.zoom-right.active,
.zoom-top.active,
.zoom-bottom.active,
.zoom-spiral.active,
.zoom-explode.active,
.rotate-zoom.active,
.flip-zoom.active {
    will-change: auto;
}

/* Loading state */
.section-loading {
    opacity: 0;
    pointer-events: none;
}

.section-loaded {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s ease;
}