* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #121212, #1a1a1a);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.glass-container {
    display: flex;
    max-width: 900px;
    width: 90%;
    min-height: 500px;
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(78, 205, 196, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-card {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #4ECDC4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.contact-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.contact-header p {
    font-size: 0.9rem;
    color: #b0b0b0;
    font-weight: 300;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
    margin-bottom: 10px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #e0e0e0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: none;
    min-height: 80px;
}

.input-group label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 0.9rem;
    color: #b0b0b0;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group .underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ECDC4;
    transition: all 0.3s ease;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: #4ECDC4;
}

.input-group input:focus ~ .underline,
.input-group textarea:focus ~ .underline {
    width: 100%;
}

.submit-btn {
    margin-top: 10px;
    padding: 12px 25px;
    background: rgba(78, 205, 196, 0.8);
    color: #121212;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn i {
    position: relative;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.contact-info {
    width: 300px;
    background: rgba(44, 44, 44, 0.3);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(78, 205, 196, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: #4ECDC4;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #fff;
}

.info-content p {
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(78, 205, 196, 0.2);
    color: #4ECDC4;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    body {
        padding: 0;
        display: block; 
        overflow-y: auto; 
        height: 100vh;
    }

    .glass-container {
        flex-direction: column;
        width: 100%;
        min-height: auto;
        border-radius: 0;
        margin: 0;
        overflow: visible;
    }

    .contact-card {
        min-height: 100vh; 
        padding: 60px 25px 40px;
        justify-content: center;
    }

    .contact-info {
        min-height: 100vh;
        width: 100%;
        padding: 60px 25px 40px;
        border-top: none; 
    }

    .social-links {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {
    .contact-card, 
    .contact-info {
        padding: 50px 20px 30px;
    }
    
    .contact-header h1 {
        font-size: 1.8rem; 
    }
}