/**
 * Ultra Modern Footer with Animations & Glassmorphism
 * OSTIM PRO
 */

/* ====================
   Footer Base
   ==================== */
.ultra-footer {
    position: relative;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    margin-top: 0;
    overflow: hidden;
    font-family: 'Exo', sans-serif;
}

.footer-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================
   Animated Background Orbs
   ==================== */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #DD1D26 0%, transparent 70%);
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -100px;
    right: 10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    top: 30%;
    right: -100px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 10px) scale(1.05);
    }
}

/* ====================
   CTA Newsletter Section
   ==================== */
.footer-cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 80px 40px;
    background: linear-gradient(135deg,
        rgba(221, 29, 38, 0.1) 0%,
        rgba(139, 92, 246, 0.05) 50%,
        rgba(6, 182, 212, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.footer-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.cta-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(221, 29, 38, 0.2);
    border: 1px solid rgba(221, 29, 38, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: #DD1D26;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.cta-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
}

/* Modern Newsletter Form */
.modern-newsletter-form {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 6px;
    transition: all 0.3s;
}

.input-group:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(221, 29, 38, 0.5);
    box-shadow: 0 0 0 4px rgba(221, 29, 38, 0.1), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-icon {
    position: absolute;
    left: 20px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px 14px 50px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Exo', sans-serif;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-group button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #DD1D26 0%, #c01a22 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(221, 29, 38, 0.4);
}

.input-group button svg {
    transition: transform 0.3s;
}

.input-group button:hover svg {
    transform: translateX(4px);
}

/* ====================
   Footer Grid
   ==================== */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Brand Column */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.brand-logo-section {
    margin-bottom: 10px;
}

.brand-name {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #DD1D26 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.brand-description {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(221, 29, 38, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(221, 29, 38, 0.3);
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #DD1D26 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Links Columns */
.footer-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
}

.title-icon {
    font-size: 20px;
}

.modern-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-link-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 0;
    position: relative;
}

.link-icon {
    font-size: 14px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.modern-link-list li a:hover {
    color: #DD1D26;
    transform: translateX(5px);
}

.modern-link-list li a:hover .link-icon {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-card:hover {
    background: rgba(221, 29, 38, 0.1);
    border-color: rgba(221, 29, 38, 0.3);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Social Section */
.social-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
}

.social-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.social-btn:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    color: #ffffff;
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
    color: #ffffff;
}

.social-btn.instagram {
    background: linear-gradient(135deg, #e1306c 0%, #fd1d1d 50%, #fcaf45 100%);
    color: #ffffff;
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
    color: #ffffff;
}

.social-btn.youtube {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: #ffffff;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ====================
   Footer Bottom Bar
   ==================== */
.footer-bottom-bar {
    padding: 30px 0;
    position: relative;
}

.footer-bottom-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(221, 29, 38, 0.5), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% {
        width: 200px;
        opacity: 0.5;
    }
    50% {
        width: 400px;
        opacity: 1;
    }
}

.bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bottom-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.bottom-links a:hover {
    color: #DD1D26;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.made-with {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.heart {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    font-size: 16px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.google-text {
    display: flex;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
}

.g-blue {
    color: #4285F4;
}

.g-red {
    color: #EA4335;
}

.g-yellow {
    color: #FBBC04;
}

.g-green {
    color: #34A853;
}

/* ====================
   Responsive Design
   ==================== */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .footer-contact-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 968px) {
    .footer-cta-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
    }

    .cta-subtitle {
        max-width: 100%;
    }

    .modern-newsletter-form {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .ultra-footer {
        margin-top: 60px;
    }

    .footer-cta-section {
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .cta-badge {
        font-size: 12px;
        padding: 6px 16px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-subtitle {
        font-size: 15px;
    }

    .input-group {
        flex-direction: column;
        padding: 10px;
    }

    .input-icon {
        left: 15px;
        top: 20px;
    }

    .input-group input {
        padding: 12px 15px 12px 45px;
        width: 100%;
    }

    .input-group button {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }

    .brand-name {
        font-size: 26px;
    }

    .footer-col-title {
        font-size: 16px;
    }

    .bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .bottom-links {
        order: -1;
    }
}

/* ====================
   Print Styles
   ==================== */
@media print {
    .footer-background,
    .gradient-orb,
    .footer-cta-section,
    .social-section,
    .stats-grid {
        display: none;
    }

    .ultra-footer {
        background: white;
        color: black;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
