* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    outline: none;
    border: none;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff4d6d;
    --background-color: #0a192f;
    --text-color: #e6f1ff;
    --card-bg: rgba(255, 255, 255, 0.05);
    --transition: all 0.3s ease;
}

body {
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    padding: 1rem 9%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.navbar {
    display: flex;
    gap: 2rem;
}

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* Contact section styles */
#contact {
    min-height: 100vh;
    padding: 120px 9% 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.container {
    max-width: 1200px;
    width: 100%;
}

.section-desc {
    text-align: center;
    color: #8892b0;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #8892b0;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

button[type="submit"]:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.contact-info {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-item h3 {
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 0.25rem;
}

.info-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(10, 25, 47, 0.95);
    color: var(--text-color);
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* Responsive styles */
@media screen and (max-width: 1024px) {
    #contact {
        padding: 100px 5% 40px;
    }

    .contact-wrapper {
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .menu-btn {
        display: block;
    }

    .navbar {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        padding: 2rem 5%;
        background: var(--background-color);
        flex-direction: column;
        align-items: center;
        transition: var(--transition);
    }

    .navbar.active {
        top: 70px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 576px) {
    .section-desc {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-links {
        justify-content: center;
    }
}