/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap');

.fjalla-one-regular {
  font-family: "Fjalla One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

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

.bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#CBD1BF 1.4px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0; /* sits below .background */
    animation: fadeOut 10s ease forwards;
    pointer-events: none; /* prevent blocking clicks */
}

.background {
    position: relative;
    z-index: 1;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #F9FCF3;
    display: grid;
    justify-items: center;
    width: 100vw;
    min-height: 100vh;
}

/* Container */
.container {
    background-color: #F9FCF3;
    overflow: hidden;
    width: 1440px;
    min-height: 1120px;
}

.main-wrapper {
    position: relative;
    width: 1451px;
    min-height: 1131px;
    top: -11px;
    left: -10px;
    background-color: #F9FCF3;
}

/* Header Navigation */
.header {
    position: absolute;
    width: 1029px;
    height: 24px;
    top: 73px;
    left: 221px;
}

.navigation {
    position: relative;
    width: 100%;
    height: 100%;
}

.nav-link {
    position: absolute;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #383838;
    font-size: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #da4646;
}

.nav-home {
    left: 0;
}

.nav-project {
    left: 211px;
}

.nav-about {
    left: 441px;
}

.nav-contact {
    left: 689px;
}

.nav-resume {
    left: 899px;
}

/* Main Content */
.contact-main {
    position: absolute;
    top: 160px;
    left: 100px;
    right: 100px;
    bottom: 100px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Side - Contact Info */
.contact-left {
    padding: 40px 0;
}

.contact-title {
    font-family: "Fjalla One", sans-serif;
    font-weight: 400;
    color: #383838;
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 50px;
    margin-top: 10px;
}

.contact-info {
    margin-bottom: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(218, 70, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #383838;
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-details p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #5b5b5b;
    font-size: 16px;
    line-height: 1.5;
}

.social-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #383838;
    font-size: 18px;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    background-color: rgba(218, 70, 70, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #da4646;
    transform: translateY(-2px);
}

.social-link img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease;
}

.social-link:hover img {
    filter: brightness(0) invert(1);
}

/* Right Side - Contact Form */
.contact-right {
    padding: 40px 0;
}

.contact-form-container {
    background-color: rgba(249, 252, 243, 0.05);
    border-radius: 12px;
    padding: 40px;
    height: fit-content;
}

.contact-form-container h2 {
    font-family: "Fjalla One", sans-serif;
    font-weight: 400;
    color: #383838;
    font-size: 32px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #383838;
    font-size: 16px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(203, 209, 191, 0.1);
    border-radius: 8px;
    background-color: rgba(203, 209, 191, 0.5);
    color: #383838;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #da4646;
    background-color: rgba(249, 252, 243, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(110, 110, 110, 0.5);
}

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

.submit-btn {
    width: 100%;
    padding: 18px 30px;
    background-color: #da4646;
    color: #f9fcf3;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #DA4646 0%, #FFB26E 100%);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1440px) {
    .container {
        width: 100vw;
        max-width: 1440px;
    }
    
    .main-wrapper {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 1200px) {
    .header {
        width: 90%;
        left: 5%;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .contact-main {
        left: 50px;
        right: 50px;
    }
    
    .contact-content {
        gap: 60px;
    }
    
    .contact-title {
        font-size: 42px;
    }
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-main {
        left: 30px;
        right: 30px;
        top: 120px;
    }
    
    .contact-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        height: auto;
        min-height: 100vh;
    }
    
    .main-wrapper {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
    }
    
    .header {
        position: relative;
        top: 30px;
        height: auto;
        margin-bottom: 30px;
    }
    
    .navigation {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .nav-link {
        position: relative;
        left: 0 !important;
        font-size: 18px;
    }
    
    .contact-main {
        position: relative;
        top: 0;
        left: 20px;
        right: 20px;
        bottom: auto;
    }
    
    .contact-title {
        font-size: 32px;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .contact-item {
        margin-bottom: 30px;
    }
    
    .contact-details h3 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 14px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
    
    .contact-form-container h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
}