:root {
    --bg: #0a0a0a;
    --surface: #1f1f1f;
    --accent: #007BFF;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
}

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

body {
    font-family: 'Roboto Slab', serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.25rem;
    margin: 0;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

header nav ul li {
    display: inline;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    flex: 1;
}

.contact-heading {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}

.contact-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 480px;
}

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

.info-item {
    margin-bottom: 2.5rem;
}

.info-label {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.info-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.125rem;
    transition: opacity 0.3s;
}

.info-link:hover {
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    margin-top: 1rem;
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s;
}

.social-link:hover::after {
    width: 100%;
}

.contact-form {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    max-width: 450px;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: none;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

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

.input-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.input-group input:placeholder-shown + label,
.input-group textarea:placeholder-shown + label {
    transform: translateY(0);
    font-size: 1rem;
}

.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label,
.input-group input:focus + label,
.input-group textarea:focus + label {
    transform: translateY(-1.5rem);
    font-size: 0.875rem;
}

.contact-form .submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 1rem; /* Adjusted margin */
}

.contact-form .submit-button:hover {
    transform: translateX(4px);
}

@media (max-width: 1200px) {
    .contact-container {
        padding: 0 5%;
    }
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 1rem;
        height: auto;
        padding: 2rem;
        overflow: visible;
    }
    
    .contact-form {
        margin-left: 0;
        width: 100%;
        max-width: 400px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-heading {
        font-size: 2.25rem;
    }
}

.wrapper {
    position: absolute; /* Changed from fixed to absolute */
    bottom: 2rem; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px; /* Move 5px below */
}

.link_wrapper {
    position: relative;
}

.custom-button {
    display: block;
    width: 250px;
    height: 50px;
    line-height: 50px;
    font-weight: bold;
    text-decoration: none;
    background: #333;
    text-align: center;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #333;
    transition: all .35s;
}

.custom-button:hover {
    background-color: #0056b3;
    color: #fff;
}

.icon {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    position: absolute;
    transform: rotate(45deg);
    right: 0;
    top: 0;
    z-index: -1;
    transition: all .35s;
}

.icon svg {
    width: 30px;
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
    transform: rotate(-45deg);
    fill: #2ecc71;
    transition: all .35s;
}

.custom-button:hover {
    width: 200px;
    border: 3px solid #2ecc71;
    background: transparent;
    color: #2ecc71;
}

.custom-button:hover + .icon {
    border: 3px solid #2ecc71;
    right: -25%;
}

footer {
    background: #1f1f1f;
    padding: 1rem 0;
    text-align: center;
    margin-top: auto; /* Ensure footer sticks to the bottom */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #007BFF;
}