* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background-color: #050510;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    background: #050510 linear-gradient(180deg, rgba(131, 0, 254, 0.05) 0%, transparent 30%),
        radial-gradient(ellipse at bottom right, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

main {
    flex: 1;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: transparent;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    height: 70px;
    background: rgba(5, 5, 15, 0.75);
    backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(131, 0, 254, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 15px rgba(131, 0, 254, 0.05);
    transition: height 0.3s ease;
}

.navbar-logo img {
    height: 35px;
    transition: transform 0.3s ease, height 0.3s ease;
    display: block;
}

.navbar-logo img:hover {
    transform: scale(1.1);
}

.navbar-links {
    display: none;
    align-items: center;
    gap: 1rem;
}

.navbar-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    padding: 0.5rem 1rem;
    transition: color 0.3s, text-shadow 0.3s;
    border-radius: 4px;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: #a855f7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.7);
}

.navbar-links .login-btn-link {
    text-decoration: none !important;
}

.navbar-links a.active {
    color: #ff6600;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.7);
}

.login-btn-link {
    margin-left: 0;
}

.login-btn {
    display: block;
    width: 100%;
    color: white;
    background: transparent;
    border: 2px solid #8300fe;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: clamp(0.85rem, 2.5vw, 0.9rem);
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease-in-out;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

.login-btn:hover {
    background: #8300fe;
    box-shadow: 0 0 10px #8300fe, 0 0 15px #8300fe, 0 0 20px #a855f7;
    transform: scale(1.03);
}

.menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    background: none;
    border: none;
    line-height: 0;
}

.menu-toggle .lucide {
    stroke: #e0e0e0;
    width: 28px;
    height: 28px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(16px);
    padding: 5rem 1.5rem 1.5rem 1.5rem;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(131, 0, 254, 0.1);
    border-right: 1px solid rgba(131, 0, 254, 0.25);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s;
}

.mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav .navbar-logo {
    margin-bottom: 2rem;
    align-self: center;
}

.mobile-nav a:not(.login-btn-link) {
    color: #e0e0e0;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    padding: 1rem 0;
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-nav a:hover {
    color: #a855f7;
}

.mobile-nav a .lucide {
    stroke: rgba(168, 85, 247, 0.8);
    width: 1.2em;
    height: 1.2em;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}

.mobile-nav a:hover .lucide {
    stroke: #a855f7;
}

.mobile-nav .login-btn-link {
    margin-top: 2rem;
    padding-top: 2rem;
    width: 100%;
    border-bottom: none;
}

.mobile-nav .login-btn {
    width: 100%;
}

.mobile-nav .close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
}

.mobile-nav .close-menu .lucide {
    stroke: #e0e0e0;
    width: 28px;
    height: 28px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0s;
}

.contact-section-container {
    max-width: 1152px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(15, 10, 30, 0.5);
    border: 1px solid rgba(131, 0, 254, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(131, 0, 254, 0.15);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 6vw, 2.8em);
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(168, 85, 247, 0.5);
}

.contact-header p {
    font-family: 'Roboto Mono', monospace;
    color: #b0b0c0;
    max-width: 700px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    opacity: 0.9;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.info-item:hover {
    background-color: rgba(131, 0, 254, 0.1);
}

.info-item .icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(131, 0, 254, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(131, 0, 254, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.info-item:hover .icon {
    transform: scale(1.1);
    border-color: #a855f7;
    background-color: rgba(131, 0, 254, 0.3);
}

.info-item .icon i.lucide {
    stroke: #c084fc;
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.info-item .details h4 {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.1rem;
    color: #c084fc;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.info-item:hover .details h4 {
    color: #fff;
}

.info-item .details p {
    font-size: 0.95rem;
    color: #ccc;
}

.info-item .details p a {
    color: #c084fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(192, 132, 252, 0.5);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.info-item .details p a:hover {
    color: #e9d5ff;
    border-bottom-color: rgba(192, 132, 252, 0.8);
}

.contact-form h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    color: #ff6600;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 8px rgba(251, 146, 60, 0.5);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #ccc;
    font-family: 'Roboto Mono', monospace;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(10, 10, 20, 0.7);
    border: 1px solid rgba(131, 0, 254, 0.3);
    border-radius: 6px;
    color: #fff;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:-webkit-autofill,
.form-group textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #0a0a14 inset !important;
    -webkit-text-fill-color: #fff !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.3);
}

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

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 2px solid #8300fe;
    background-color: #8300fe;
    color: white;
    margin-top: 1rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: 1;
}

.submit-btn:hover::before {
    left: 150%;
}

.submit-btn:hover {
    background-color: #a855f7;
    border-color: #a855f7;
    box-shadow: 0 0 8px #8300fe, 0 0 15px #8300fe, 0 0 25px #a855f7;
    transform: scale(1.05) translateY(-2px);
}

.submit-btn:active {
    transform: scale(0.98) translateY(0);
    filter: brightness(0.9);
    transition-duration: 0.1s;
}

.github-disclaimer {
    font-size: 0.8rem;
    text-align: center;
    color: #aaa;
    margin-top: 1rem;
}

footer {
    background-color: #050507;
    color: #a0a0a0;
    padding: 2rem 1rem;
    position: relative;
    z-index: 10;
    font-size: 0.85rem;
    border-top: 1px solid #3a3a3a;
    margin-top: auto;
    text-align: center;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    border-top: none;
    color: #888;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    margin-top: 0.8rem;
}

.footer-bottom-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #bb86fc;
}

@media screen and (min-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    main {
        padding-top: 120px;
    }

    .navbar {
        flex-direction: row;
        height: 80px;
        padding: 0 2.5rem;
    }

    .navbar-logo img {
        height: 45px;
    }

    .navbar-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 0;
        width: auto;
        gap: 1rem;
    }

    .menu-toggle {
        display: none;
    }

    .navbar-links a {
        width: auto;
        padding: 0.5rem 1rem;
    }

    .navbar-links .login-btn-link {
        margin-top: 0;
        margin-left: 1rem;
    }

    .login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 14px;
        display: inline-block;
        width: auto;
    }

    .contact-header h1 {
        font-size: 3em;
    }

    .contact-header p {
        font-size: 1.1em;
    }

    .contact-content {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-info {
        flex-basis: 40%;
    }

    .contact-form {
        flex-basis: 60%;
    }

    .contact-form h3 {
        text-align: left;
    }

    .submit-btn {
        width: auto;
        min-width: 180px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-bottom-links {
        margin-top: 0;
    }
}

@media screen and (min-width: 1024px) {
    .navbar {
        padding: 0 4rem;
    }

    .navbar-links {
        gap: 1.5rem;
    }

    .contact-header h1 {
        font-size: 3.5em;
    }

    .contact-header p {
        font-size: 1.2em;
    }

    .contact-section-container {
        padding: 3rem;
    }
}