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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #0d1117;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 101;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e5e7eb;
}

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

.nav-link {
    text-decoration: none;
    color: #8b949e;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    display: inline-block;
}

.dashboard-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-left: 1rem;
    white-space: nowrap;
}

.dashboard-button:hover {
    background: #2563eb;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
    z-index: 101;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #e5e7eb;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: #0d1117;
    color: white;
    margin-bottom: 4rem;
    border-radius: 12px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white;
    line-height: 1.5;
}

.password-check-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.form-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.password-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1f2937;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 0;
}

.password-input::placeholder {
    color: #9ca3af;
}

.password-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.check-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.check-button:hover {
    background: #2563eb;
}

.check-button:active {
    transform: translateY(1px);
}

/* Results Section */
.results {
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result {
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}

.result.safe {
    background: #1e3a2e;
    border: 1px solid #22c55e;
    color: #86efac;
}

.result.pwned {
    background: #3a1e1e;
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.result h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.result p {
    margin-bottom: 0.5rem;
}

.hidden {
    display: none;
}

/* Info Cards Section */
.info-cards {
    margin-bottom: 4rem;
}

.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    background: #161b22;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #e5e7eb;
    font-weight: 600;
    line-height: 1.3;
}

.info-card p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #8b949e;
    line-height: 1.6;
}

.nist-highlight {
    color: #3b82f6;
    font-weight: 600;
}

.dangers-card {
    border-left: 4px solid #3b82f6;
}

.dangers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.danger-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: transparent;
    padding: 0;
    border: none;
    border-left: none;
}

.danger-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.danger-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: #8b949e;
}

.danger-content {
    flex: 1;
}

.danger-content h3 {
    color: #e5e7eb;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.danger-content p {
    color: #8b949e;
    margin: 0;
    font-size: 0.95rem;
}

/* Performance Section */
.performance {
    margin-bottom: 4rem;
    background: #161b22;
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.performance h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    text-align: center;
    line-height: 1.2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: #0d1117;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #8b949e;
    font-weight: 500;
}

.performance h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.performance p {
    margin-bottom: 1rem;
    color: #8b949e;
    font-size: 1.1rem;
}

/* API Section */
.api-section {
    margin-bottom: 4rem;
}

.api-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    text-align: center;
}

.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.api-item {
    background: #161b22;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #30363d;
}

.api-item h3 {
    color: #e5e7eb;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.api-item p {
    margin-bottom: 1.5rem;
    color: #8b949e;
}

.api-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.api-link:hover {
    border-bottom-color: #3b82f6;
    color: #60a5fa;
}

/* Partners Section */
.partners {
    margin-bottom: 4rem;
}

.partners h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    text-align: center;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.partner-item {
    background: #161b22;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid #30363d;
}

.partner-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    display: block;
}

.partner-item h3 {
    color: #e5e7eb;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.partner-item h4 {
    color: #3b82f6;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.partner-item p {
    margin-bottom: 1.5rem;
    color: #8b949e;
}

.partner-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.partner-link:hover {
    border-bottom-color: #3b82f6;
    color: #60a5fa;
}

/* Support Section */
.support {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem;
    background: #161b22;
    border-radius: 12px;
    border: 1px solid #30363d;
}

.support h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.support p {
    margin-bottom: 2rem;
    color: #8b949e;
    font-size: 1.1rem;
}

.donate-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.donate-button:hover {
    background: #2563eb;
}

/* Footer */
.footer {
    background: #0d1117;
    color: white;
    padding: 3rem 0 2rem;
    border-top: 1px solid #30363d;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #ecf0f1;
}

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

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

.footer-section a {
    color: #8b949e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-list {
        gap: 1.5rem;
    }
    
    .api-grid,
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu backdrop */
    .nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 99;
        pointer-events: none;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background-color: #161b22;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-bottom: 1.5rem;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #30363d;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .dashboard-button {
        margin-left: 0;
        margin-top: 0;
        width: 100%;
        padding: 0.75rem 1.5rem;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .password-check-form {
        padding: 0 1rem;
        max-width: 100%;
    }

    .form-group {
        flex-direction: row;
        gap: 0.5rem;
    }

    .password-input {
        flex: 1;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .check-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-width: auto;
        flex-shrink: 0;
    }

    .performance {
        padding: 2rem 1.5rem;
    }

    .performance h2,
    .api-section h2,
    .partners h2,
    .support h2 {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .api-grid,
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .support {
        padding: 2.5rem 1.5rem;
    }

    .support h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 2rem;
    }

    .footer-section {
        text-align: left;
    }

    .main {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .header {
        padding: 0.75rem 0;
    }

    .nav-brand .logo {
        height: 35px;
    }

    .hero {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0;
    }

    .password-check-form {
        padding: 0;
        max-width: 100%;
    }

    .form-group {
        flex-direction: row;
        gap: 0.5rem;
    }

    .password-input {
        flex: 1;
        padding: 0.875rem 0.75rem;
        font-size: 0.9rem;
    }

    .check-button {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
        min-width: auto;
        flex-shrink: 0;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .info-card p {
        font-size: 0.95rem;
    }

    .performance {
        padding: 1.5rem 1rem;
    }

    .performance h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .performance h3 {
        font-size: 1.4rem;
    }

    .performance p {
        font-size: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    .api-section h2,
    .partners h2,
    .support h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .api-item,
    .partner-item {
        padding: 1.5rem;
    }

    .api-item h3,
    .partner-item h4 {
        font-size: 1.25rem;
    }

    .api-item p,
    .partner-item p {
        font-size: 0.95rem;
    }

    .support {
        padding: 2rem 1rem;
    }

    .support p {
        font-size: 1rem;
    }

    .donate-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .result {
        padding: 1.5rem;
    }

    .result h3 {
        font-size: 1.1rem;
    }

    .result p {
        font-size: 0.95rem;
    }

    .danger-item {
        padding: 0;
    }

    .danger-content h3 {
        font-size: 1rem;
    }

    .danger-content p {
        font-size: 0.9rem;
    }

    .footer {
        padding: 2rem 0 1.5rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section ul li {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .performance h2,
    .api-section h2,
    .partners h2,
    .support h2 {
        font-size: 1.35rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }
}

