* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.contact {
    padding: 6rem 0;
    background: #f8fafc; /* Light background */
    position: relative;
    overflow: hidden;
}
html {
    scroll-behavior: smooth;
}

.contact::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(37, 99, 235, 0.05) 50%, transparent 55%);
    animation: shine 3s infinite linear;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    height: fit-content;
}

.contact-info:hover {
    transform: translateZ(20px);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
    color: #ffffff;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.info-item:hover i {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.contact-form {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.form-group {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    resize: vertical;
    max-height: 200px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

/* Custom icons for form fields */
.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    padding-left: 2.5rem;
}

.form-group::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 2.3rem;
    color: #2563eb;
    font-size: 1rem;
}

.form-group.name-group::before {
    content: "\f007"; /* User icon */
}

.form-group.email-group::before {
    content: "\f0e0"; /* Envelope icon */
}

.form-group.message-group::before {
    content: "\f075"; /* Message icon */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-container {
        padding: 1rem;
    }
}


/* Contact Info Section Styles */
.contact-info {
    padding: 2rem;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    height: fit-content;
}

.contact-info:hover {
    transform: translateZ(20px);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Info Item Styles */
.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

/* Icon Styles */
.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #2563eb;
    transition: all 0.3s ease;
}

.info-item:hover i {
    background: #2563eb;
    color: white;
    transform: scale(1.1) rotate(360deg);
}

/* Info Text Styles */
.info-item p {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
}

/* Animation */
.info-item {
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
    animation-delay: calc(var(--item-index) * 0.1s);
}

/* Contact Info Title Styles */
.info-item h4 {
    color: #2563eb;
    font-size: 0.9rem;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-info h3 i {
    margin-right: 0.5rem;
    color: #2563eb;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Add these styles for the contact info links */
.info-item p a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.info-item p a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.info-item p a:hover {
    color: #2563eb;
}

.info-item p a:hover::after {
    width: 100%;
}

/* Add icon for external links */
.info-item p a[target="_blank"]::after {
    content: '\f08e';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-item p a[target="_blank"]:hover::after {
    opacity: 1;
}

/* Enhanced hover effect */
.info-item:hover p a {
    color: #2563eb;
    padding-left: 5px;
}

/* Smooth transition for hover */
.info-item p a {
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.info-item p a:hover {
    border-bottom-color: #2563eb;
}

/* Add header and navigation styles */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    justify-content: center; /* Center the logo */
    align-items: center;
    height: 80px;
    padding: 0 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.navbar-logo {
    height: 210px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    padding: 8px 0;
    margin-top: 10px;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

/* Add padding to the contact section to account for fixed header */
.contact {
    padding-top: 120px; /* Increased top padding to prevent content from hiding under header */
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 200px;
        margin-top:20px;
    }
    
    .contact {
        padding-top: 100px; /* Adjust padding for mobile */
    }
}

/* Styles for form response messages (success and error) */
#response-message {
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
}

#response-message.success {
    background-color: #d4edda;
    color: #00ff3c;
    border: 1px solid #c3e6cb;
}

#response-message.error {
    background-color: #f8d7da;
    color: #ff0019;
    border: 1px solid #f5c6cb;
}
