/* ===== ADVANCED PREMIUM FEATURES ===== */

/* 1. CUSTOM CURSOR EFFECT */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%231F3A5F" stroke-width="2"><circle cx="12" cy="12" r="10"/></svg>') 12 12, auto;
}

a,
button,
.cta-btn,
.project-card,
.service-card {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%231F3A5F"><circle cx="12" cy="12" r="8"/></svg>') 12 12, pointer;
}

/* 2. ANIMATED GRADIENT BACKGROUND FOR HERO */
.hero.hero-minimal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            rgba(31, 58, 95, 0.03) 0%,
            rgba(113, 128, 150, 0.03) 50%,
            rgba(31, 58, 95, 0.03) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 3. PARALLAX SCROLL EFFECT FOR IMAGES */
.parallax-img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 4. ANIMATED STATISTICS/COUNTERS */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
    display: inline-block;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 0;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 5. FLOATING ANIMATION FOR ELEMENTS */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 6. TEXT GRADIENT EFFECT */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 7. GLOWING BUTTON EFFECT */
.glow-btn {
    position: relative;
    overflow: hidden;
}

.glow-btn::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%);
    transition: width 0.6s, height 0.6s;
}

.glow-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* 8. IMAGE ZOOM ON HOVER */
.zoom-container {
    overflow: hidden;
    border-radius: 8px;
}

.zoom-img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    width: 100%;
}

.zoom-container:hover .zoom-img {
    transform: scale(1.15);
}

/* 9. LOADING SKELETON */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* 10. TOOLTIP EFFECT */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    padding: 8px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 5px solid transparent;
    border-top-color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* 11. CARD FLIP EFFECT */
.flip-card {
    perspective: 1000px;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

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

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
}

.flip-card-back {
    transform: rotateY(180deg);
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 12. PULSE ANIMATION FOR IMPORTANT ELEMENTS */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* 13. SLIDE IN FROM SIDES */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 14. STAGGERED FADE IN FOR LISTS */
.stagger-fade li {
    opacity: 0;
    transform: translateY(20px);
}

.stagger-fade.visible li {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger-fade.visible li:nth-child(1) {
    animation-delay: 0.1s;
}

.stagger-fade.visible li:nth-child(2) {
    animation-delay: 0.2s;
}

.stagger-fade.visible li:nth-child(3) {
    animation-delay: 0.3s;
}

.stagger-fade.visible li:nth-child(4) {
    animation-delay: 0.4s;
}

.stagger-fade.visible li:nth-child(5) {
    animation-delay: 0.5s;
}

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

/* 15. SHINE EFFECT ON HOVER */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s;
}

.shine-effect:hover::before {
    left: 100%;
}

/* 16. BORDER ANIMATION */
.border-animate {
    position: relative;
    border: 2px solid transparent;
}

.border-animate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
}

.border-animate:hover::before {
    opacity: 1;
    animation: borderPulse 1.5s infinite;
}

@keyframes borderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }
}

/* 17. TYPEWRITER EFFECT */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40) 1s forwards,
        blink 0.75s step-end infinite;
    width: 0;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* 18. MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .stats-container {
        gap: 30px;
        padding: 40px 0;
    }
}

/* 19. ENHANCED ABOUT IMAGE STYLING */
.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover::before {
    top: 30px;
    left: 30px;
    opacity: 0.5;
}

.about-image img {
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    box-shadow: 0 30px 80px rgba(31, 58, 95, 0.25) !important;
    transform: scale(1.02);
}

/* Smooth entrance animation for about image */
.about-image.aos-animate img {
    animation: smoothFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes smoothFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}