/* ===================================
   GYAANSAAR TECHNOLOGIES - PREMIUM HERO ANIMATION
   Modern, Corporate, Futuristic Design
   =================================== */

.hero-animated {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #f0f4ff 25%,
            #e6f0ff 50%,
            #dce8ff 75%,
            #0a2463 100%);
    padding: 6rem 2rem 2rem;
}

/* Animated Background Digital Lines */
.hero-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Gradient Overlay with Glow Effects */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background:
        radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.85;
    }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    animation: floatParticle 15s linear infinite;
    opacity: 0;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) translateX(100px) scale(1.2);
    }
}

/* Main Content Container */
.hero-animated-container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Left Content Section */
.hero-animated-content {
    position: relative;
    z-index: 11;
}

/* Company Name with Sweep Effect */
.company-name {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpName 1.2s ease-out 0.3s forwards;
    position: relative;
    display: inline-block;
}

.company-name-text {
    background: linear-gradient(135deg, #0a2463 0%, #2563eb 50%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

/* Light Sweep Effect */
.company-name::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.8) 50%,
            transparent 100%);
    animation: lightSweep 2.5s ease-in-out 1s;
    pointer-events: none;
}

@keyframes lightSweep {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes fadeInUpName {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-subtitle {
    font-size: 1.4rem;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.company-description {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
    max-width: 600px;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-subtitle,
.company-description {
    transform: translateY(20px);
}

/* CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
    transform: translateY(20px);
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    color: white;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
}

.hero-btn-primary::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;
}

.hero-btn-primary:hover::before {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.5);
}

.hero-btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.15);
}

.hero-btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* Right Visual Section - Floating UI Elements */
.hero-visual-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Floating UI Elements Container - Grid Layout */
.floating-ui-elements {
    position: relative;
    width: 100%;
    max-width: 550px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 1.5rem;
    padding: 1rem;
}

/* Individual Floating Cards - Grid Based */
.floating-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(30px) scale(0.95) translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(37, 99, 235, 0.05));
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s;
}

.floating-card:hover::before {
    opacity: 1;
}

.floating-card:hover {
    transform: translateY(-8px) scale(1.05) translateZ(0);
    box-shadow: 0 25px 70px rgba(14, 165, 233, 0.25);
}

/* Card Grid Positioning */
.floating-card.erp {
    grid-column: 1;
    grid-row: 1;
    animation: floatIn 1s ease-out 2s forwards, floatUpDown 6s ease-in-out 3s infinite;
}

.floating-card.hms {
    grid-column: 2;
    grid-row: 1;
    animation: floatIn 1s ease-out 2.3s forwards, floatUpDown 6s ease-in-out 3.3s infinite;
}

.floating-card.lms {
    grid-column: 1;
    grid-row: 2;
    animation: floatIn 1s ease-out 2.6s forwards, floatUpDown 6s ease-in-out 3.6s infinite;
}

.floating-card.webapp {
    grid-column: 2;
    grid-row: 2;
    animation: floatIn 1s ease-out 2.9s forwards, floatUpDown 6s ease-in-out 3.9s infinite;
}

.floating-card.mobile {
    grid-column: 1 / 3;
    grid-row: 3;
    justify-self: center;
    max-width: 280px;
    animation: floatIn 1s ease-out 3.2s forwards, floatUpDown 6s ease-in-out 4.2s infinite;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatInCenter {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatUpDownCenter {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    50% {
        transform: translate(-50%, calc(-50% - 15px));
    }
}

/* Card Content Styling */
.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a2463;
    margin-bottom: 0.5rem;
}

.card-desc {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.card-badge {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(37, 99, 235, 0.1));
    color: #2563eb;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Data Flow Lines */
.data-flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    opacity: 0;
    animation: flowLine 3s ease-in-out infinite;
}

@keyframes flowLine {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-animated-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .company-name {
        font-size: 3.5rem;
    }

    .hero-visual-section {
        min-height: auto;
        padding: 1rem;
    }

    .floating-ui-elements {
        max-width: 500px;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-animated {
        padding: 5rem 1.5rem 2rem;
    }

    .company-name {
        font-size: 2.8rem;
    }

    .company-subtitle {
        font-size: 1.1rem;
    }

    .company-description {
        font-size: 1rem;
    }

    .hero-cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }

    .hero-visual-section {
        min-height: auto;
        margin-top: 2rem;
        padding: 0.5rem;
    }

    .floating-ui-elements {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
        max-width: 100%;
    }

    .floating-card.erp,
    .floating-card.hms,
    .floating-card.lms,
    .floating-card.webapp,
    .floating-card.mobile {
        grid-column: 1;
        max-width: 100%;
    }

    .floating-card.erp {
        grid-row: 1;
    }

    .floating-card.hms {
        grid-row: 2;
    }

    .floating-card.lms {
        grid-row: 3;
    }

    .floating-card.webapp {
        grid-row: 4;
    }

    .floating-card.mobile {
        grid-row: 5;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 2.2rem;
    }

    .floating-ui-elements {
        padding: 0.5rem;
        gap: 0.8rem;
    }

    .floating-card {
        padding: 1.2rem;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-desc {
        font-size: 0.85rem;
    }
}

/* Premium Quality Enhancements */
.premium-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: glowMove 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowMove {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, -50px) scale(1.2);
    }
}

/* Trust Indicators */
.trust-badges {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.7s forwards;
    transform: translateY(20px);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-badge svg {
    width: 20px;
    height: 20px;
    color: #10b981;
}

/* Smooth Scrolling Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards, bounce 2s ease-in-out 3s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: #2563eb;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}