/* Compact Footer Styles */
.modern-footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 192, 192, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-main {
    padding: 2.5rem 0 1rem;
    position: relative;
    z-index: 1;
}

/* Footer Brand Section */
.footer-brand {
    text-align: left;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
}

/* Footer Sections */
.footer-section {
    margin-bottom: 1rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.25rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Footer Menu */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.5rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

/* Contact Items */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.contact-item i {
    width: 16px;
    margin-right: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin: 0;
}

.footer-actions {
    display: flex;
    justify-content: flex-end;
}

.footer-cta-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 192, 192, 0.2);
}

.footer-cta-btn:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 192, 192, 0.3);
}

.footer-cta-btn i {
    font-size: 0.8em;
}

/* Protected Email */
.protected-email {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animation for intersection observer */
.animate-in {
    animation: slideInUp 0.4s ease-out forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 2rem 0 0.75rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-description {
        margin: 0 auto;
        text-align: center;
        max-width: 350px;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-items {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .footer-actions {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 1.5rem 0 0.5rem;
    }
    
    .footer-logo {
        height: 50px;
    }
    
    .footer-description {
        font-size: 0.85rem;
        max-width: 320px;
        line-height: 1.6;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-menu li {
        margin-bottom: 0.4rem;
    }
    
    .footer-menu a {
        font-size: 0.85rem;
    }
    
    .contact-items {
        gap: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.85rem;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .footer-actions {
        justify-content: center;
        margin-top: 0.75rem;
    }
    
    .copyright-text {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
    
    .footer-cta-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 1.25rem 0 0.25rem;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    .footer-description {
        font-size: 0.8rem;
        max-width: 280px;
        line-height: 1.5;
    }
    
    .footer-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-menu a {
        font-size: 0.8rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .contact-item i {
        width: 14px;
        font-size: 0.8rem;
        margin-right: 0.4rem;
    }
    
    .footer-cta-btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        border-radius: 18px;
    }
    
    .copyright-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .footer-bottom {
        padding: 0.6rem 0;
    }
    
    /* Better spacing for small screens */
    .col-6 .footer-section {
        margin-bottom: 1.2rem;
    }
    
    /* Stack columns better on very small screens */
    .contact-items {
        gap: 0.4rem;
    }
}

/* Extra small devices (phones, 320px and up) */
@media (max-width: 480px) {
    .footer-main {
        padding: 1rem 0 0.25rem;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-description {
        font-size: 0.75rem;
        max-width: 260px;
        padding: 0 1rem;
    }
    
    .footer-title {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }
    
    .footer-menu a {
        font-size: 0.75rem;
        padding: 0.1rem 0;
    }
    
    .footer-menu li {
        margin-bottom: 0.3rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
    }
    
    .footer-cta-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.7rem;
        min-width: 120px;
    }
    
    .copyright-text {
        font-size: 0.7rem;
        padding: 0 0.5rem;
        text-align: center;
    }
    
    /* Ensure proper column stacking */
    .col-6 {
        width: 50%;
        padding: 0 0.5rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
}

/* Large tablets and small desktops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .footer-description {
        max-width: 260px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-menu a {
        font-size: 0.9rem;
    }
}

/* Better touch targets for mobile */
@media (max-width: 767.98px) {
    .footer-menu a,
    .contact-item a,
    .footer-cta-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .footer-menu a {
        border-radius: 6px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .footer-menu a:hover {
        background-color: rgba(0, 192, 192, 0.1);
    }
    
    .contact-item a {
        border-radius: 6px;
        min-height: auto;
        padding: 0.3rem 0.5rem;
    }
}

/* Print styles */
@media print {
    .modern-footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .footer-logo {
        filter: none !important;
    }
    
    .footer-cta-btn {
        display: none;
    }
}

/* Focus states for accessibility */
.footer-menu a:focus,
.contact-item a:focus,
.footer-cta-btn:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-menu a,
    .footer-cta-btn,
    .footer-logo {
        transition: none;
    }
    
    .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Protected Email */
.protected-email {
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animation for intersection observer */
.animate-in {
    animation: slideInUp 0.6s ease-out forwards;
}

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

/* Responsive Design */
@media (max-width: 991.98px) {
    .footer-main {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-description {
        margin: 0 auto 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-item {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .footer-main {
        padding: 2rem 0 1rem;
    }
    
    .footer-logo {
        height: 40px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-menu li {
        margin-bottom: 0.5rem;
    }
    
    .cta-section {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .footer-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1.25rem;
    }
    
    .footer-bottom {
        text-align: center;
        padding: 1rem 0;
    }
    
    .footer-legal {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .copyright-text {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 1.5rem 0 0.5rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-description {
        font-size: 0.85rem;
        max-width: 280px;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-links a {
        width: 38px;
        height: 38px;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-menu a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copyright-text {
        font-size: 0.8rem;
    }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
    .modern-footer {
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-footer {
        background: #000000;
        border-top: 2px solid #ffffff;
    }
    
    .footer-menu a,
    .contact-item a {
        color: #ffffff;
    }
    
    .footer-menu a:hover,
    .contact-item a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding: 0.25rem 0.5rem;
        border-radius: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-menu a,
    .footer-cta-btn,
    .footer-logo,
    .social-links a {
        transition: none;
    }
    
    .animate-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Focus states for accessibility */
.footer-menu a:focus,
.contact-item a:focus,
.footer-cta-btn:focus,
.social-links a:focus,
.footer-legal a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 3px;
}