/* ============================================
   IMPROVED LAYOUT STYLES - Professional & Clean
   - Better header navigation spacing
   - Improved footer grid layout
   - Enhanced section headers
   - Cleaner typography
   ============================================ */

/* ===== HEADER IMPROVEMENTS ===== */

/* Header Container */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Header Navigation - Better spacing */
.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.header-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

/* Hide mobile menu on desktop */
.mobile-menu {
    display: none;
}

.mobile-menu-toggle {
    display: none;
}

@media (max-width: 968px) {
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

/* Header CTA Button */
.cta-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ===== FOOTER IMPROVEMENTS ===== */

/* Footer Brand Section */
.footer-brand {
    max-width: 320px;
}

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

.footer-logo .logo-icon {
    font-size: 32px;
}

.footer-logo .logo-text {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.footer-logo .logo-mark {
    font-size: 24px;
    font-weight: 800;
    color: #667eea;
}

.footer-logo .logo-domain {
    font-size: 20px;
    font-weight: 800;
    color: #4a5568;
}

[data-theme="dark"] .footer-logo .logo-domain {
    color: #a0aec0;
}

.footer-tagline {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-desc {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

[data-theme="dark"] .footer-tagline {
    color: #e2e8f0;
}

[data-theme="dark"] .footer-desc {
    color: #a0aec0;
}

/* Social Links - Smaller, elegant icons */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.social-links a svg {
    width: 18px;
    height: 18px;
    fill: #667eea;
    transition: fill 0.3s ease;
}

.social-links a:hover svg {
    fill: white;
}

[data-theme="dark"] .social-links a {
    background: rgba(102, 126, 234, 0.15);
}

[data-theme="dark"] .social-links a svg {
    fill: #a5b4fc;
}

/* Footer Main Container */
.footer-main {
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .footer-main {
    background: #1a202c;
    border-top-color: #2d3748;
}

/* Footer Grid - Better organization */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Footer Section Headings */
.footer-section h4,
.footer-stats h5,
.footer-contact h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

[data-theme="dark"] .footer-section h4,
[data-theme="dark"] .footer-stats h5,
[data-theme="dark"] .footer-contact h5 {
    color: #e2e8f0;
}

/* Footer Links */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #667eea;
    transform: translateX(4px);
}

[data-theme="dark"] .footer-section ul li a {
    color: #a0aec0;
}

[data-theme="dark"] .footer-section ul li a:hover {
    color: #667eea;
}

/* Footer Newsletter */
.footer-newsletter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 48px 0;
}

.newsletter-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.newsletter-input-group {
    display: flex;
    gap: 12px;
    max-width: 500px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

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

.newsletter-input-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-group button {
    padding: 14px 32px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-input-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Footer Badges */
.footer-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-badges .badge {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

[data-theme="dark"] .footer-badges .badge {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    border-color: rgba(102, 126, 234, 0.3);
}

/* ===== HOMEPAGE SECTIONS ===== */

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 17px;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

[data-theme="dark"] .section-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .section-header p {
    color: #a0aec0;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 32px;
}

[data-theme="dark"] .hero-title {
    color: #e2e8f0;
}

[data-theme="dark"] .hero-subtitle {
    color: #a0aec0;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 968px) {
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
}

.stat-item {
    text-align: left;
}

@media (max-width: 968px) {
    .stat-item {
        text-align: center;
    }
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
}

@media (max-width: 968px) {
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
    }
}

.btn {
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary {
    background: #2d3748;
    color: #a5b4fc;
    border-color: #667eea;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Hero Badge */
.hero-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 40px;
    border-radius: 60px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 968px) {
    .hero-badge {
        margin: 0 auto;
    }
}

.badge-icon {
    font-size: 28px;
}

.badge-text {
    color: white;
    font-weight: 700;
    font-size: 18px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Sections Spacing */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}
