/* Animations, Transitions & Responsive Rules */

/* Page Content Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowShift {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 128, 0.5));
    }
    33% {
        filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.5));
    }
    66% {
        filter: drop-shadow(0 0 20px rgba(157, 80, 187, 0.5));
    }
}

/* Element Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* Button Hover Animations */
.action-btn {
    animation: scaleIn 0.6s ease forwards;
}

.link-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger Animation Delays */
.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.2s; }
.stagger-delay-3 { animation-delay: 0.3s; }
.stagger-delay-4 { animation-delay: 0.4s; }
.stagger-delay-5 { animation-delay: 0.5s; }

/* Page Footer */
.page-footer {
    margin-top: 80px;
    padding: 40px 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-item i {
    color: #00D2FF;
    font-size: 14px;
}

/* Responsive Design - Desktop First */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 40px;
    }
    
    .title-gradient {
        font-size: 5rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .title-gradient {
        font-size: 4rem;
    }
    
    .hindi-text {
        font-size: 1.4rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .title-gradient {
        font-size: 3.5rem;
        letter-spacing: 2px;
    }
    
    .company-tagline {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }
    
    .action-section {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hindi-text {
        font-size: 1.3rem;
    }
    
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .logo-frame {
        width: 160px;
        height: 160px;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .title-gradient {
        font-size: 2.8rem;
        letter-spacing: 1px;
        padding: 0 15px;
    }
    
    .company-tagline {
        font-size: 1rem;
        letter-spacing: 2px;
        padding: 8px 20px;
    }
    
    .description-section {
        padding: 25px;
        margin: 40px auto;
    }
    
    .hindi-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .hindi-text br {
        display: none;
    }
    
    .links-title {
        flex-direction: column;
        gap: 15px;
    }
    
    .title-line {
        width: 80%;
    }
    
    .title-text {
        font-size: 1.5rem;
        padding: 0;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .link-card {
        padding: 20px;
    }
    
    .link-badge {
        width: 50px;
        height: 50px;
        margin-right: 20px;
        font-size: 20px;
    }
    
    .footer-contacts {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .cube-container {
        width: 140px;
        height: 140px;
    }
    
    .face {
        width: 140px;
        height: 140px;
        font-size: 80px;
    }
    
    .front { transform: translateZ(70px); }
    .back { transform: rotateY(180deg) translateZ(70px); }
    .right { transform: rotateY(90deg) translateZ(70px); }
    .left { transform: rotateY(-90deg) translateZ(70px); }
    .top { transform: rotateX(90deg) translateZ(70px); }
    .bottom { transform: rotateX(-90deg) translateZ(70px); }
}

/* Mobile Portrait (575px and below) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    .title-gradient {
        font-size: 2.2rem;
        letter-spacing: 0;
    }
    
    .logo-wrapper {
        padding: 10px;
    }
    
    .logo-frame {
        width: 140px;
        height: 140px;
        border-radius: 20px;
    }
    
    .company-logo {
        border-radius: 15px;
    }
    
    .company-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }
    
    .action-section {
        gap: 15px;
        margin: 30px auto;
    }
    
    .action-btn {
        padding: 15px 25px;
        min-width: auto;
        font-size: 15px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    
    .description-section {
        padding: 20px;
        border-radius: 20px;
    }
    
    .hindi-text {
        font-size: 1rem;
    }
    
    .links-section {
        margin: 50px auto 40px;
    }
    
    .link-card {
        padding: 18px;
    }
    
    .link-badge {
        width: 45px;
        height: 45px;
        margin-right: 15px;
        font-size: 18px;
    }
    
    .link-content h4 {
        font-size: 1.1rem;
    }
    
    .link-content p {
        font-size: 0.85rem;
    }
    
    .link-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .cube-container {
        width: 120px;
        height: 120px;
    }
    
    .face {
        width: 120px;
        height: 120px;
        font-size: 70px;
        border-radius: 12px;
    }
    
    .front { transform: translateZ(60px); }
    .back { transform: rotateY(180deg) translateZ(60px); }
    .right { transform: rotateY(90deg) translateZ(60px); }
    .left { transform: rotateY(-90deg) translateZ(60px); }
    .top { transform: rotateX(90deg) translateZ(60px); }
    .bottom { transform: rotateX(-90deg) translateZ(60px); }
    
    .loader-text {
        font-size: 22px;
        letter-spacing: 2px;
        gap: 8px;
    }
}

/* Small Mobile (400px and below) */
@media (max-width: 400px) {
    .title-gradient {
        font-size: 1.8rem;
    }
    
    .logo-frame {
        width: 120px;
        height: 120px;
    }
    
    .company-tagline {
        font-size: 0.85rem;
    }
    
    .action-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .hindi-text {
        font-size: 0.95rem;
    }
    
    .link-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .link-badge {
        margin-right: 0;
    }
    
    .link-content {
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .background-animation,
    .action-btn::before,
    .link-card::before,
    .loader-container {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .action-btn,
    .link-card {
        border: 1px solid black !important;
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    .title-gradient {
        background: black !important;
        -webkit-text-fill-color: black !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .title-gradient {
        -webkit-text-fill-color: white;
    }
    
    .action-btn,
    .link-card {
        border-width: 2px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .action-btn:hover,
    .link-card:hover {
        transform: none;
    }
    
    .action-btn:active,
    .link-card:active {
        transform: scale(0.98);
    }
}

/* Performance Optimizations */
@media (prefers-reduced-transparency: reduce) {
    .background-animation,
    .gradient-orb,
    .logo-glow-effect,
    .action-btn,
    .link-card {
        backdrop-filter: none;
        opacity: 1;
    }
}