/* About Page Custom Styles */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

/* Container max width utility */
.container-max {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Float Animation for Decorative Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(3deg);
    }
    66% {
        transform: translateY(10px) rotate(-2deg);
    }
}

.animate-float {
    animation: float 20s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 18s ease-in-out infinite 2s;
}

.animate-float-slow {
    animation: float 25s ease-in-out infinite 1s;
}

/* Pulse Animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
}

/* Image Hover Effect */
.image-hover-scale {
    transition: transform 0.5s ease-in-out;
}

.image-hover-scale:hover {
    transform: scale(1.05);
}

/* Card 3D Tilt Effect Base */
.card-3d {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(2deg);
}

/* Timeline Animation */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Counter Animation Ready */
.counter {
    transition: all 0.3s ease;
}

/* Hover Glow Effect */
.hover-glow:hover {
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.3);
}

/* Image Collage Stagger on Load */
.image-collage img {
    animation: fadeInScale 0.8s ease-out backwards;
}

.image-collage img:nth-child(1) {
    animation-delay: 0.1s;
}

.image-collage img:nth-child(2) {
    animation-delay: 0.2s;
}

.image-collage img:nth-child(3) {
    animation-delay: 0.3s;
}

.image-collage img:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mission & Vision Cards Entrance */
.mission-vision-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-vision-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Value Cards Hover Effect */
.value-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

/* Timeline Pulse Dots */
.timeline-dot {
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.5;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Section Pattern Animation */
.pattern-animate {
    animation: pattern-slide 20s linear infinite;
}

@keyframes pattern-slide {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 60px 60px;
    }
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::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-ripple:hover::before {
    width: 300px;
    height: 300px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container-max {
        padding: 0 1rem;
    }

    .timeline-dot::after {
        display: none;
    }
}

/* AOS Override for smoother animations */
[data-aos] {
    transition-duration: 0.8s;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
    opacity: 0;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
    opacity: 1;
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
    opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
    opacity: 1;
}

/* Loading State */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth Image Load */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Decorative Blob Animation */
.blob {
    animation: blob-morph 10s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text Gradient Shine Effect */
.text-shine {
    background: linear-gradient(90deg, 
        rgba(251, 191, 36, 1) 0%, 
        rgba(252, 211, 77, 1) 50%, 
        rgba(251, 191, 36, 1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Parallax Effect Helper */
.parallax {
    transition: transform 0.1s ease-out;
}

/* Custom scrollbar — tablet/phone only */
@media (max-width: 1024px) {
    ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #1a3a52, #2d5a7b);
        border-radius: 6px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #0f2537, #1a3a52);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}
