.contact-hero {
    position: relative;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    pointer-events: none;
}

.contact-hero .section-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-hero .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-hero .hero-text {
    max-width: 600px;
}

.contact-hero .hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-hero .hero-subtitle {
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 3rem;
}

.contact-hero .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-hero .cta-button:hover {
    background: transparent;
}

.contact-hero .cta-button i {
    transition: transform 0.3s ease;
}

.contact-hero .cta-button:hover i {
    transform: translateX(5px);
}

.contact-illustration {
    width: 100%;
    height: auto;
}

/* SVG Animation */
.pulse-ring {
    animation: pulse 2s infinite;
    transform-origin: center;
    opacity: 0.3;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.5s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 1s;
}

.connection-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 3s infinite alternate ease-in-out;
}

.node {
    animation: glow 2s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    50% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes glow {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .contact-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-hero .hero-text {
        margin: 0 auto;
    }

    .contact-hero .hero-title {
        font-size: 4rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1.25rem;
    }

    .contact-illustration {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .contact-hero .hero-title {
        font-size: 3rem;
    }

    .contact-hero .hero-subtitle {
        font-size: 1.1rem;
    }

    .contact-hero .cta-button {
        width: 100%;
        justify-content: center;
    }
}

/* Dark theme styles */
:root[data-theme="dark"] .contact-hero {
    color: var(--secondary-color);
}

:root[data-theme="dark"] .contact-hero .hero-title {
    color: var(--secondary-color);
}

:root[data-theme="dark"] .contact-hero .hero-subtitle {
    color: var(--secondary-color);
    opacity: 0.9;
}

:root[data-theme="dark"] .contact-hero .cta-button {
    color: var(--primary-color);
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

:root[data-theme="dark"] .contact-hero .cta-button:hover {
    background: transparent;
    color: var(--secondary-color);
}

:root[data-theme="dark"] .hero-grid-overlay {
    background-image: linear-gradient(var(--geometric-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--geometric-color) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Light theme styles */
:root[data-theme="light"] .contact-hero {
    color: var(--primary-color);
}

:root[data-theme="light"] .contact-hero .hero-title {
    color: var(--primary-color);
}

:root[data-theme="light"] .contact-hero .hero-subtitle {
    color: var(--text-color);
    opacity: 0.9;
}

:root[data-theme="light"] .contact-hero .cta-button {
    color: var(--secondary-color);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

:root[data-theme="light"] .contact-hero .cta-button:hover {
    background: transparent;
    color: var(--primary-color);
}

:root[data-theme="light"] .hero-grid-overlay {
    background-image: linear-gradient(var(--geometric-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--geometric-color) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Contact Information Section */
.contact-info {
    padding: 8rem 0;
    background: var(--background);
    position: relative;
}

.contact-info .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info .section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 4rem;
}

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

.contact-card {
    position: relative;
    background-color: var(--text-color);
    /* color: var(--background); */
    border-radius: 20px;
    overflow: hidden;
}

.card-content {
    color: var(--text-color);
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(var(--text-rgb), 0.1);
    border-radius: 20px;
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-card:hover .card-content {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .card-decoration {
    opacity: 1;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.card-icon i {
    font-size: 1.75rem;
    color: var(--accent-color);
    transform: rotate(-45deg);
}

.contact-card:hover .card-icon {
    transform: rotate(225deg);
}

.contact-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--background);
    margin-bottom: 1rem;
}

.contact-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--background);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--background);
    text-decoration: none;
    transition: gap 0.3s ease;
}

.card-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .card-link {
    gap: 1.25rem;
}

.contact-card:hover .card-link i {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .contact-info .section-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-info .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .contact-info {
        padding: 6rem 0;
    }

    .contact-info .section-title {
        font-size: 2.5rem;
    }

    .card-content {
        padding: 2rem;
    }

    .contact-card h3 {
        font-size: 1.5rem;
    }

    .contact-card p {
        font-size: 1rem;
    }
}

/* Contact Form Section */
.contact-form {
    padding: 8rem 0;
    background: var(--background);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 0% 0%,
        rgba(var(--accent-rgb), 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.contact-form .section-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.contact-form .section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4rem;
}

.message-form {
    background: var(--background);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(var(--text-rgb), 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.input-wrapper {
    position: relative;
    border: 1px solid var(--text-color);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-width: 2px;
    outline: 2px dashed var(--text-color);
    outline-offset: 4px;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-color);
    font-family: inherit;
}

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

.input-wrapper label {
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--background);
    padding: 0 0.25rem;
    color: var(--text-color);
}

.input-wrapper input:focus + label,
.input-wrapper textarea:focus + label,
.input-wrapper input:not(:placeholder-shown) + label,
.input-wrapper textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.875rem;
}

:root[data-theme="dark"] .input-wrapper {
    border-color: var(--text-color);
    background: var(--background);
}

:root[data-theme="dark"] .input-wrapper label {
    color: var(--text-color);
    background: var(--background);
}

:root[data-theme="dark"] .input-wrapper input,
:root[data-theme="dark"] .input-wrapper textarea {
    color: var(--text-color);
}

:root[data-theme="light"] .input-wrapper {
    border-color: var(--text-color);
    background: var(--background);
}

:root[data-theme="light"] .input-wrapper label {
    color: var(--text-color);
    background: var(--background);
}

:root[data-theme="light"] .input-wrapper input,
:root[data-theme="light"] .input-wrapper textarea {
    color: var(--text-color);
}

:root[data-theme="dark"] .message-form {
    background: var(--background);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] .message-form {
    background: var(--background);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--background);
    background: var(--text-color);
    border: 2px solid var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: transparent;
    color: var(--text-color);
    background-color: var(--background);
}

.submit-button i {
    transition: transform 0.3s ease;
}

.submit-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 6rem 0;
    }

    .contact-form .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

    .message-form {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-form .section-title {
        font-size: 2.5rem;
    }

    .message-form {
        padding: 1.5rem;
    }

    .submit-button {
        width: 100%;
        justify-content: center;
    }
}

/* Map Section */
.map-section {
    padding: 8rem 0;
    background: var(--background);
    position: relative;
}

.map-section .section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.map-section .section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(var(--text-rgb), 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-marker {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

.pulse-ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.4);
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Dark mode specific styles */
:root[data-theme="dark"] .map-container {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Light mode specific styles */
:root[data-theme="light"] .map-container {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .map-section {
        padding: 6rem 0;
    }

    .map-section .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }

    .map-container {
        height: 350px;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .map-section .section-title {
        font-size: 2.5rem;
    }

    .map-container {
        height: 300px;
    }
}
