/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Gothic A1', sans-serif;
    background: white;
    overflow-x: hidden;
}

/* Main Container */
.contact-page {
    position: relative;
    width: 1440px;
    height: 1024px;
    background: linear-gradient(180deg, #ad86bc 27.404%, #ffffff 96.154%);
    backdrop-filter: blur(5.8px);
    display: grid;
    grid-template-columns: 25px 24px 1327px 1fr;
    grid-template-rows: 50px 88px 22px 81px 81px 81px 1fr 99px;
    overflow: hidden;
}

/* Navigation */
.navigation {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    z-index: 100;
}

.nav-container {
    position: relative;
    width: 1327px;
    height: 88px;
    background: white;
    border-radius: 40px;
    box-shadow: 0px 4px 7px 12.2px rgba(0, 0, 0, 0.25);
    display: grid;
    grid-template-columns: 56px 1fr 240px 20px;
    align-items: center;
    padding: 0 20px;
}

.logo-container {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    width: auto;
    height: 60px;
    aspect-ratio: 252/297;
    object-fit: contain;
    position: relative;
    top: 12px;
}

.nav-buttons {
    grid-column: 3 / 4;
    display: grid;
    grid-template-columns: 146px 154px;
    gap: 20px;
    align-items: center;
}

.btn-design-gallery,
.btn-contact {
    height: 51px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JMH Typewriter', monospace;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: 4px solid black;
    transition: all 0.3s ease;
}

.btn-design-gallery {
    background: transparent;
    color: black;
}

.btn-design-gallery:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-contact {
    background: black;
    color: white;
}

.btn-contact:hover {
    background: #333;
}

/* Back Button */
.nav-back {
    grid-column: 1 / 2;
    grid-row: 4 / 5;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
}

.back-icon {
    width: 100%;
    height: 100%;
}

/* Background Elements */
.background-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ellipse {
    position: absolute;
    width: 749px;
    height: 679px;
}

.ellipse-left {
    left: -72px;
    top: 149px;
    transform: scaleY(-1);
}

.ellipse-right {
    right: 0;
    top: 243px;
    transform: scaleY(-1);
}

.ellipse svg {
    width: 100%;
    height: 100%;
}

/* Main Contact Card */
.contact-card {
    grid-column: 2 / 4;
    grid-row: 3 / 8;
    z-index: 10;
    position: relative;
    display: grid;
    grid-template-columns: 89px 1fr 60px;
    grid-template-rows: 100px 132px 1fr;
    margin-left: 34px;
}

.card-content {
    grid-column: 1 / 4;
    grid-row: 2 / 4;
    background: black;
    border-radius: 52px;
    box-shadow: 0px 4px 15.1px 17px rgba(0, 0, 0, 0.25);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 497px;
    grid-template-rows: 163px 89px 1fr;
    gap: 0 51px;
}

/* Title Section */
.title-section {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    display: grid;
    grid-template-columns: 1fr 135px;
    grid-template-rows: auto auto;
    position: relative;
}

.main-title {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-family: 'JMH Typewriter', monospace;
    font-size: 150px;
    font-weight: normal;
    color: white;
    letter-spacing: -7px;
    line-height: 1;
    margin: 0;
}

.logo-white {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    width: 135px;
    height: 160px;
    align-self: start;
}

.logo-white img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subtitle {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-family: 'Gothic A1', sans-serif;
    font-weight: bold;
    font-size: 30px;
    color: white;
    letter-spacing: 0.5px;
    margin-top: 15px;
    margin-left: 50px;
}

/* Contact Information */
.contact-info {
    grid-column: 1 / 2;
    grid-row: 2 / 4;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 46px;
    padding-left: 50px;
    padding-top: 15px;
}

.contact-title {
    font-family: 'Gothic A1', sans-serif;
    font-weight: normal;
    font-size: 48px;
    line-height: 99px;
    margin: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.contact-email,
.contact-tel {
    font-family: 'Gothic A1', sans-serif;
    font-weight: normal;
    font-size: 30px;
    line-height: 39px;
    letter-spacing: 0.5px;
}

/* Contact Form Section */
.contact-form-section {
    grid-column: 2 !important;
    grid-row: 2 / 4;
    align-self: start;
}

.contact-form {
    background: white;
    border-radius: 43px;
    padding: 31px 40px 45px;
    width: 597px;
    min-height: 354px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-family: 'Gothic A1', sans-serif;
    font-size: 16px;
    color: black;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.form-input,
.form-textarea {
    background: black;
    border: none;
    border-radius: 21px;
    outline: none;
    padding: 10px 15px;
    color: white;
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
}

.form-input {
    height: 39px;
}

.input-email {
    height: 61px;
}

.form-textarea {
    height: 85px;
    resize: none;
    padding-right: 45px;
}

.btn-send {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 31px;
    height: 31px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send svg {
    width: 100%;
    height: 100%;
}

.btn-send:hover {
    opacity: 0.7;
}

/* Footer */
/* CSS Grid Layout for Footer */

.page-footer {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 116px;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #ad86bc 3.365%, #3b2762 86.538%);
  box-shadow: 0px 4px 21.5px 22px #ad86bc;
  z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .page-footer {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-footer {
        grid-template-rows: 80px;
    }
}


/* Responsive adjustments for smaller screens */
@media (max-width: 1440px) {
    .contact-page {
        width: 100%;
        height: auto;
        min-height: 100vh;
        grid-template-columns: 25px 24px 1fr 25px;
    }

    .nav-container {
        width: 100%;
        max-width: 1327px;
    }

    .card-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 30px;
    }

    .contact-form-section {
        grid-column: 1 / 2;
    }

    .contact-form {
        width: 100%;
        max-width: 497px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        grid-template-columns: 15px 1fr 15px;
    }

    .navigation {
        grid-column: 2 / 3;
    }

    .nav-container {
        grid-template-columns: 56px 1fr auto;
        padding: 0 15px;
    }

    .nav-buttons {
        grid-template-columns: auto auto;
        gap: 10px;
    }

    .btn-design-gallery,
    .btn-contact {
        font-size: 12px;
        padding: 0 15px;
    }

    .main-title {
        font-size: 80px;
        letter-spacing: -3px;
    }

    .subtitle,
    .contact-email,
    .contact-tel {
        font-size: 18px;
    }

    .contact-title {
        font-size: 32px;
    }

    .contact-card {
        grid-column: 2 / 3;
        margin-left: 0;
    }

    .card-content {
        padding: 30px 20px;
    }

    .title-section {
        grid-template-columns: 1fr;
    }

    .logo-white {
        grid-column: 1 / 2;
        justify-self: end;
    }
}
