body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #2a2a2a, #0a0a0a);
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 5%;
}

.header {
    position: relative;
    padding: 40px 0 60px;
    background: rgba(0, 0, 0, 0.7);
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    z-index: 1;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 3.5em;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #4da8da, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(77, 168, 218, 0.5);
}

/* Navigation Links */
.nav-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    min-width: 100px;
    text-align: center;
}

.nav-item:hover {
    background: #4da8da;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(77, 168, 218, 0.4);
}

.header-diagonal {
    position: absolute;
    bottom: 0; /* Adjusted from -1px to 0 to stay within clip-path */
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(45deg, #4da8da, transparent);
    transform: skewY(-2deg);
    z-index: 2; /* Increased to ensure it’s above content */
}

.main-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.intro {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(77, 168, 218, 0.2);
    position: relative;
}

.intro h2 {
    font-size: 2.5em;
    margin: 0 0 20px;
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.intro p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #e0e0e0;
}

.intro a {
    color: #4da8da;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.intro a:hover {
    color: #66b3e6;
    text-shadow: 0 0 5px rgba(77, 168, 218, 0.5);
}

.contact {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(77, 168, 218, 0.2);
}

.floating-form {
    position: relative;
    transition: transform 0.3s ease;
}

.floating-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.contact h2 {
    font-size: 2em;
    margin: 0 0 20px;
    color: #fff;
    text-align: center;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 5px;
    font-size: 1em;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.contact input:focus,
.contact textarea:focus {
    border-color: #4da8da;
    box-shadow: 0 0 8px rgba(77, 168, 218, 0.3);
    outline: none;
}

.contact textarea {
    min-height: 100px;
    resize: vertical;
}

.contact input::placeholder,
.contact textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#captcha-text {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
}

.btn {
    padding: 14px 24px;
    background: #4da8da;
    border: none;
    color: #fff;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.btn:hover {
    background: #66b3e6;
    box-shadow: 0 0 15px rgba(77, 168, 218, 0.5);
    transform: scale(1.02);
}

.footer {
    padding: 40px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    margin: 0 20px;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.footer-content a:hover {
    color: #4da8da;
    text-shadow: 0 0 8px rgba(77, 168, 218, 0.3);
}

.footer-content p {
    margin-top: 20px;
    font-size: 0.95em;
    color: #cccccc;
}

.success,
.error {
    color: #4da8da;
    text-align: center;
    text-shadow: 0 0 5px rgba(77, 168, 218, 0.3);
    font-size: 1em;
}

.error {
    color: #da4d4d;
    text-shadow: 0 0 5px rgba(218, 77, 77, 0.3);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide header links on mobile */
    }

    .header h1 {
        font-size: 2.5em;
    }

    .header {
        padding: 20px 0 30px;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    .main-content {
        flex-direction: column;
        padding: 20px 0;
        gap: 30px;
    }

    .intro h2 {
        font-size: 2em;
    }

    .intro p {
        font-size: 1.1em;
    }

    .contact h2 {
        font-size: 1.8em;
    }

    .contact input,
    .contact textarea {
        font-size: 0.95em;
    }

    .btn {
        font-size: 1em;
        padding: 12px 20px;
    }

    .footer {
        padding: 20px 0;
        clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    }

    .footer-content a {
        font-size: 0.9em;
        margin: 0 10px;
        padding: 8px 16px;
    }

    .footer-content p {
        font-size: 0.8em;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding: 0 3%;
    }

    .header h1 {
        font-size: 2em;
    }

    .intro,
    .contact {
        padding: 15px;
    }

    .intro h2 {
        font-size: 1.8em;
    }

    .intro p {
        font-size: 1em;
    }

    .contact h2 {
        font-size: 1.5em;
    }

    .footer-content a {
        font-size: 0.85em;
        margin: 0 8px;
    }

    .footer-content p {
        font-size: 0.75em;
    }
}

/* Desktop: Show header links */
@media (min-width: 769px) {
    .header-content {
        display: block;
    }

    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: none;
        flex-direction: row;
        gap: 25px;
        justify-content: center;
        margin-top: 20px;
        z-index: auto;
        padding: 0;
    }

    .nav-item {
        width: auto;
        display: inline-block;
    }
}