/* Base font imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Old+Standard+TT:wght@400;700&family=Open+Sans:wght@400;600&family=Playfair+Display:wght@400;700&family=Lato:wght@400;700&family=Cormorant+Garamond:wght@400;700&family=Josefin+Sans:wght@400;600&family=Roboto+Mono&family=Source+Code+Pro&family=Fira+Code&family=Dancing+Script&family=Pacifico&family=Sacramento&family=Press+Start+2P&family=VT323&family=Ubuntu+Mono&family=Oswald&family=Montserrat&family=Raleway&family=Bebas+Neue&family=Abril+Fatface&family=Permanent+Marker&family=Righteous&family=Poiret+One&family=Cinzel&family=UnifrakturMaguntia&family=Russo+One&family=Press+Start+2P&family=VT323&family=Silkscreen&family=Comic+Neue&family=Quicksand&family=Indie+Flower&family=Fredoka+One&family=Bubblegum+Sans&family=DM+Sans&family=Work+Sans&family=Space+Grotesk&family=Creepster&family=Metal+Mania&family=Nosifer&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafbfc;
    color: #0f172a;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ================================
   PERFECT HEADER - FULL WIDTH
================================ */
.site-header {
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 90px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #8b5cf6 25%, 
        #ec4899 50%, 
        #f59e0b 75%, 
        #10b981 100%);
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 10;
    transition: all 0.3s ease;
}

.logo img {
    width: auto;
    height: auto;
    border-radius: 16px;
   
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 24px;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-menu a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-menu a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #475569;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* ================================
   MAIN CONTENT SPACING
================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 2rem;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #475569, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.header p {
    color: #64748b;
    font-size: 1.2rem;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Generator Styles */
.generator-container {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
   
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 4rem;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

select {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

button {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

button:active {
    transform: translateY(-1px);
}

.results {
    display: none;
    margin-top: 2rem;
}

.font-pair {
    background: #fafbfc;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.font-pair:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.font-info {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.font-info a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.heading-text {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
    color: #1e293b;
}

.body-text {
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.6;
    color: #475569;
}

.placeholder-text {
    text-align: center;
    color: #64748b;
    padding: 3rem 1rem;
    font-size: 1.125rem;
}

/* Image Styles */

/* ================================
   PERFECT FOOTER - FULL WIDTH
================================ */
.site-footer {
    position: relative;
    width: 100vw;
    min-height: 120px;
    margin-top: 4rem;
    margin-left: calc(-50vw + 50%);
    background: white;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    left: 0;
    right: 0;
}

.footer-content {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 120px;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #7c3aed;
}

.separator {
    color: #8b5cf6;
    font-size: 14px;
}

.footer-copyright {
    color: #6b7280;
    font-size: 14px;
}

.footer-copyright a {
    color: #8b5cf6;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #7c3aed;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Article Styles */
article {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #1e293b;
}

article h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

article div[style*="background: #f8fafc"] {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    border-left: 5px solid #6366f1 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

article section h2 {
    font-size: 2.25rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: left;
    background: none;
    -webkit-text-fill-color: initial;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #6366f1, #8b5cf6) 1;
    padding-bottom: 0.75rem;
}

article p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.8;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .header-content {
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 120px 1.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 80px;
    }
    
    .header-content {
        padding: 0 1rem;
    }
    
    .container {
        padding: 100px 1rem 2rem;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        border-radius: 12px;
        padding: 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .generator-container {
        padding: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo img {
        width: 45px;
        height: 45px;
    }
    
    .generator-container {
        padding: 1rem;
    }
    
    .font-pair {
        padding: 1.5rem;
    }
    
    .footer-links a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}