/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1e3a8a;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --dark-bg: #0a1733;
    --dark-bg-light: #1a2847;
    --footer-text: #cbd5e1;
    --footer-text-dim: #94a3b8;
    --footer-border: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Demo Content */
.demo-content {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background: white;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.demo-content h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.demo-content p {
    color: var(--text-medium);
}

/* ====================
   FOOTER STYLES
   ==================== */
.site-footer {
    background: var(--dark-bg);
    color: var(--footer-text);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    animation: fadeInFooter 0.6s ease;
}

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

/* Decorative Sparkles */
.footer-sparkle {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 28px;
    pointer-events: none;
    animation: sparkleRotate 5s ease-in-out infinite;
}

.sparkle-1 {
    top: 40px;
    right: 8%;
    animation-delay: 0s;
}

.sparkle-2 {
    bottom: 50px;
    right: 5%;
    font-size: 20px;
    animation-delay: 1.5s;
}

@keyframes sparkleRotate {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.3) rotate(180deg);
    }
}

/* Subtle background pattern */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 48px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1fr 1.3fr;
    gap: 40px;
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.footer-logo .logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.footer-logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.05);
}

.footer-logo .logo-icon svg {
    width: 100%;
    height: 100%;
}

.footer-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.footer-logo .logo-line-1,
.footer-logo .logo-line-2 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.brand-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text);
    opacity: 0.9;
    max-width: 240px;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--footer-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    z-index: 0;
}

.social-link svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.social-link:hover {
    border-color: white;
    transform: translateY(-3px);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover svg {
    color: var(--dark-bg);
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-column:hover .footer-heading::after {
    width: 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.footer-link {
    color: var(--footer-text);
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.footer-link:hover {
    color: white;
    padding-left: 12px;
}

.footer-link:hover::before {
    transform: translateY(-50%) scale(1);
}

/* Footer Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--footer-text);
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.2s ease;
    cursor: pointer;
}

.contact-item:hover {
    color: white;
    transform: translateX(4px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-light);
    margin-top: 2px;
    transition: all 0.2s ease;
}

.contact-item:hover .contact-icon {
    color: white;
    transform: scale(1.15);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-text {
    flex: 1;
    word-break: break-word;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding: 20px 48px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.2);
}

.copyright {
    font-size: 13px;
    color: var(--footer-text-dim);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.copyright {
    position: relative;
    display: inline-block;
}

/* ====================
   RESPONSIVE
   ==================== */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 32px;
        padding: 50px 32px 32px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-bottom {
        padding: 18px 32px;
    }
}

@media (max-width: 768px) {
    .demo-content {
        margin: 10px;
        padding: 40px 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
        padding: 40px 24px 28px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-heading {
        font-size: 16px;
        margin-bottom: 14px;
    }
    
    .footer-bottom {
        padding: 16px 24px;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .footer-sparkle {
        font-size: 20px;
    }
    
    .sparkle-1 {
        top: 20px;
        right: 5%;
    }
    
    .sparkle-2 {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 20px 24px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .brand-description {
        max-width: 100%;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column:hover .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link:hover {
        padding-left: 0;
    }
    
    .footer-link:hover::before {
        display: none;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .contact-item:hover {
        transform: none;
    }
    
    .footer-sparkle-1, .sparkle-1 {
        top: 20px;
        right: 20px;
        font-size: 16px;
    }
}
