/* Header */
.header-area {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 0;
    background: rgba(247, 250, 252, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-area.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-logo:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}

.header-contact-info {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--slate-blue);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    padding: 2rem;
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    margin-top: 3rem;
}

.mobile-nav-menu li {
    margin-bottom: 1rem;
}

.mobile-nav-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: var(--primary);
    padding-left: 1rem;
}

/* Footer */
.footer-area {
    background: var(--slate-blue);
    color: var(--bg-primary);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about h3 {
    color: var(--bg-primary);
    margin-bottom: 1.5rem;
}

.footer-about p {
    color: rgba(247, 250, 252, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--bg-primary);
    font-size: 18px;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: rgba(247, 250, 252, 0.8);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--bg-primary);
    padding-left: 0.5rem;
}

.footer-contact-info h4 {
    color: var(--bg-primary);
    font-size: 18px;
    margin-bottom: 1rem;
}

.footer-contact-info p {
    color: rgba(247, 250, 252, 0.9);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(247, 250, 252, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(247, 250, 252, 0.7);
    font-size: 14px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-accent {
    background: var(--accent);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 18px;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 14px;
}

/* Cards */
.article-card {
    background: var(--bg-card);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.article-card:hover {
    transform: perspective(1000px) rotateY(2deg) translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.article-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-image {
    transform: scale(1.05);
}

.article-card-content {
    padding: 1.5rem;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-light);
}

.article-card-category {
    background: var(--accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.article-card-title {
    font-size: 20px;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.article-card-excerpt {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-card-read-time {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate-blue);
    font-weight: 600;
}

/* Forms */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.1);
}

.form-control.error {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 48, 48, 0.1);
}

.form-error-message {
    color: var(--accent);
    font-size: 14px;
    margin-top: 0.25rem;
    display: none;
}

.form-error-message.active {
    display: block;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0.125rem;
}

.form-checkbox-label {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.form-submit-button {
    width: 100%;
    padding: 1.25rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit-button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.form-submit-button:disabled {
    background: var(--neutral-grey);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-success-message {
    background: #10B981;
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.form-success-message.active {
    display: block;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: 60vh;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
}

.cookie-accept-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .article-card {
        margin-bottom: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
}