/* 3D Effects and Animations */
body {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* 3D Drone in Hero Section */
.drone-3d {
    position: absolute;
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(20deg) rotateY(30deg);
    background: url('http://static.photos/technology/300x300/5') no-repeat center center;
    background-size: contain;
    animation: floatDrone 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.7));
}

@keyframes floatDrone {
    0%, 100% { transform: translate(-50%, -50%) rotateX(20deg) rotateY(30deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotateX(25deg) rotateY(35deg) translateY(-20px); }
}

/* Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

/* 3D Text Effects */
.hero-title {
    text-shadow: 3px 3px 0 rgba(59, 130, 246, 0.3), 
                 6px 6px 0 rgba(59, 130, 246, 0.2);
    transform: translateZ(50px);
    animation: titleFloat 6s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateZ(50px) translateY(0); }
    50% { transform: translateZ(50px) translateY(-10px); }
}

.hero-subtitle, .hero-button {
    transform: translateZ(30px);
}

/* 3D About Section Effects */
.drone-floating {
    position: absolute;
    width: 200px;
    height: 200px;
    right: 10%;
    top: 20%;
    background: url('http://static.photos/technology/200x200/7') no-repeat center center;
    background-size: contain;
    animation: floatDroneSmall 6s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.5));
}

@keyframes floatDroneSmall {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.about-image-container {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.about-image-container:hover {
    transform: rotateY(15deg) rotateX(5deg);
}

.about-image {
    border-radius: 10px;
    box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: translateZ(20px);
}

/* 3D Course Cards */
.course-card {
    position: relative;
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 1s;
    cursor: pointer;
}

.course-card:hover {
    transform: rotateY(180deg);
}

.course-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.course-card-front, .course-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    background: #1f2937;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.course-card-back {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-drones {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-drones::before, 
.floating-drones::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: url('http://static.photos/technology/100x100/3') no-repeat center center;
    background-size: contain;
    animation: floatRandom 10s infinite linear;
}

.floating-drones::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-drones::after {
    top: 60%;
    right: 10%;
    animation-delay: -5s;
}

@keyframes floatRandom {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 50px) rotate(90deg); }
    50% { transform: translate(100px, 0) rotate(180deg); }
    75% { transform: translate(50px, -50px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* 3D Testimonial Cards */
.testimonial-card {
    position: relative;
    padding: 2rem;
    background: rgba(31, 41, 55, 0.7);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    background: rgba(31, 41, 55, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.1;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.5) 0%, transparent 70%);
}

/* 3D Contact Section */
.contact-drones {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.contact-drones::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 10%;
    background: url('http://static.photos/technology/150x150/8') no-repeat center center;
    background-size: contain;
    animation: floatContact 7s ease-in-out infinite;
}

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

.contact-form {
    transform-style: preserve-3d;
}

.contact-form input, 
.contact-form textarea {
    transition: all 0.3s ease;
    transform: translateZ(0);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    transform: translateZ(10px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Section Entry Animations */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text, 
.feature-item, 
.testimonial-card, 
.course-card {
    opacity: 0;
    transition: all 0.6s ease;
}

.about-text.visible, 
.feature-item.visible, 
.testimonial-card.visible, 
.course-card.visible {
    opacity: 1;
}

/* 3D Hover Effects */
.feature-item {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.feature-item:hover {
    transform: translateZ(10px);
    color: #3b82f6;
}