/* 3D Stylish & Colorful Enhancements */

:root {
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --shadow-3d: 0 10px 30px rgba(0,0,0,0.3), 0 1px 8px rgba(0,0,0,0.2);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.4), 0 5px 15px rgba(0,0,0,0.3);
}

/* Hero Section 3D Enhancement */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    z-index: 1;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-slide {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section Title 3D Effect */
.section-title h2 {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    transform: translateZ(20px);
    position: relative;
    display: inline-block;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px) translateZ(20px); }
    50% { transform: translateY(-10px) translateZ(30px); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(245, 87, 108, 0.5);
}

/* About Section 3D Styling */
.about-section-wrapper {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.about-image-stylish {
    transform: translateZ(30px);
    transition: transform 0.5s ease;
}

.about-image-stylish:hover {
    transform: translateZ(50px) scale(1.05);
}

.image-frame {
    background: var(--gradient-5);
    padding: 8px;
    border-radius: 30px;
    box-shadow: var(--shadow-3d);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: imageShine 3s infinite;
}

@keyframes imageShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.image-frame:hover {
    box-shadow: var(--shadow-hover);
    transform: rotate(2deg) scale(1.02);
}

.about-main-image {
    border-radius: 25px;
    transition: transform 0.4s ease;
}

.about-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-3d);
    border: 2px solid rgba(255,255,255,0.5);
    transform: translateZ(20px);
}

/* Team Cards 3D Effect */
.team-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 2px solid transparent;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 172, 254, 0.3);
}

.team-photo {
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s ease;
    position: relative;
    overflow: hidden;
}

.team-card:hover .team-photo {
    transform: scale(1.1);
}

.team-info {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
    padding: 1.5rem;
    position: relative;
}

.team-name {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Posts Cards 3D Styling */
.card {
    background: #ffffff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border: 2px solid transparent;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card:hover::after {
    opacity: 0.05;
}

.card:hover {
    transform: translateY(-20px) rotateY(5deg);
    box-shadow: var(--shadow-hover);
    border-color: rgba(245, 87, 108, 0.3);
}

.card img {
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.15) rotate(2deg);
}

.card-body {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #ffffff, #f8f9ff);
}

.card-title {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Buttons 3D Enhancement */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform-style: preserve-3d;
    border: none;
}

.btn::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:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    transform: translateZ(10px);
}

.btn-primary:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--gradient-2);
    transform: translateZ(10px);
}

.btn-secondary:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 87, 108, 0.4);
}

/* Section Background Gradients */
.section:nth-child(odd) {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    position: relative;
}

.section:nth-child(even) {
    background: linear-gradient(180deg, #f8f9ff 0%, #fff5f7 100%);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bg-light {
    background: linear-gradient(180deg, #f8f9ff 0%, #fff5f7 50%, #f0f9ff 100%) !important;
}

/* Call to Action 3D */
.bg-primary {
    background: var(--gradient-6) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    animation: bgPattern 20s linear infinite;
}

@keyframes bgPattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.bg-primary h2 {
    text-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: ctaHeading 2s ease-in-out infinite;
}

@keyframes ctaHeading {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Slider Dots Enhancement */
.slider-dots {
    display: flex;
    gap: 12px;
    padding: 1rem 0;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ddd, #bbb);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.slider-dot.active {
    background: var(--gradient-3);
    transform: scale(1.5);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.5);
}

.slider-dot:hover {
    transform: scale(1.3);
}

/* Hero Dots */
.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-dot.active {
    background: var(--gradient-2);
    transform: scale(1.4);
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.6);
}

/* Container Enhancement */
.container {
    position: relative;
    z-index: 1;
}

/* Grid Enhancement */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section > * {
    animation: fadeInUp 0.8s ease-out;
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.slider-container {
    animation: float 6s ease-in-out infinite;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .team-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    
    .card:hover {
        transform: translateY(-10px);
    }
    
    .btn:hover {
        transform: scale(1.03);
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Additional 3D Enhancements */
.gradient-text {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.cta-3d {
    position: relative;
    transform-style: preserve-3d;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: ctaTitlePulse 3s ease-in-out infinite;
}

@keyframes ctaTitlePulse {
    0%, 100% { 
        transform: scale(1) translateZ(0);
        text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    50% { 
        transform: scale(1.08) translateZ(20px);
        text-shadow: 0 20px 50px rgba(0,0,0,0.7);
    }
}

.cta-subtitle {
    font-size: 1.2rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-top: 1rem;
}

/* Slider Container Enhancement */
.people-slider {
    position: relative;
    padding: 2rem 0;
}

/* Hero Buttons Glow Effect */
.hero-buttons .btn {
    animation: btnGlow 2s ease-in-out infinite;
}

.hero-buttons .btn:nth-child(1) {
    animation-delay: 0s;
}

.hero-buttons .btn:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes btnGlow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 10px 40px rgba(245, 87, 108, 0.6), 0 0 20px rgba(245, 87, 108, 0.4);
    }
}

/* Section Background Enhancement */
.section {
    position: relative;
    overflow: hidden;
}

.section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: sectionGlow 8s ease-in-out infinite;
}

@keyframes sectionGlow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-20%, -20%) scale(1.2);
        opacity: 0.8;
    }
}

/* Particle Effect Background */
@keyframes particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(102, 126, 234, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(245, 87, 108, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(79, 172, 254, 0.3), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(67, 233, 123, 0.3), transparent);
    background-size: 200% 200%;
    animation: particleMove 15s ease infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleMove {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}
