/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #3b82f6;
    --navy: #1e293b;
    --gray: #64748b;
    --light-blue: #dbeafe;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--navy);
    background: #f8f9fa;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-icon-btn:hover {
    color: var(--primary-blue);
    transform: scale(1.1);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 100%);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--navy);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    z-index: 9999;
    transition: left 0.4s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    left: 0;
}

.mobile-menu-content {
    padding: 100px 40px 40px;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    margin-bottom: 25px;
}

.mobile-menu-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu-list a:hover {
    padding-left: 10px;
    color: #dbeafe;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.search-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-modal-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-modal-header h2 {
    font-size: 28px;
    color: var(--navy);
}

.close-search-modal {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    transition: all 0.3s ease;
}

.close-search-modal:hover {
    color: var(--primary-blue);
    transform: rotate(90deg);
}

.modal-search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-search-bar input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.modal-search-bar input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.modal-search-bar button {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-search-bar button:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: var(--light-blue);
    transform: translateY(-5px);
}

.category-item h4 {
    color: var(--navy);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item p {
    color: var(--gray);
    font-size: 14px;
}

.category-item.hidden {
    display: none;
}

.no-results {
    display: none;
    text-align: center;
    padding: 40px;
}

.no-results.show {
    display: block;
}

/* Terms Hero Section */
.terms-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
}

.terms-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.terms-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
}

.last-updated {
    font-size: 16px;
    opacity: 0.9;
}

/* Terms Content Sections */
.terms-content-section {
    padding: 60px 0;
}

.terms-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

.terms-intro {
    margin-bottom: 40px;
}

.terms-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 20px;
}

.terms-section {
    margin-bottom: 40px;
}

.terms-section h2 {
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 25px;
    font-weight: 800;
}

.terms-section h3 {
    font-size: 24px;
    color: var(--navy);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.terms-section h4 {
    font-size: 20px;
    color: var(--navy);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.terms-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 15px;
}

.terms-section ul,
.terms-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.terms-section ul li,
.terms-section ol li {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 12px;
}

.contact-email {
    font-size: 18px;
    margin-top: 20px;
}

.contact-email a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    max-width: 350px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .contact-text {
        display: none;
    }

    .terms-hero h1 {
        font-size: 36px;
    }

    .terms-section h2 {
        font-size: 28px;
    }

    .terms-section h3 {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 15px 20px;
    }

    .terms-hero {
        padding: 120px 0 60px;
    }

    .terms-hero h1 {
        font-size: 28px;
    }

    .terms-container {
        padding: 0 20px;
    }

    .terms-content-section {
        padding: 40px 0;
    }

    .terms-section h2 {
        font-size: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}