/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s ease;
}

nav a:hover::before {
    left: 0;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0;
    min-height: calc(100vh - 200px);
}

.contact-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e40af;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e40af;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background: white;
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: scale(1.01);
    transition: 0.5s;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    border: 2px solid #1e40af;
    transition: all 0.3s ease;
}

.contact-buttons .btn::before {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

.contact-buttons .btn:hover {
    border-color: #3b82f6;
}

/* Footer */
footer {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

footer p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.75rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .contact-section h2 {
        font-size: 1.75rem;
    }
    
    .contact-section p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.25rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    nav a {
        padding: 0.5rem;
    }
}

/* Animation for form submission */
@keyframes submitSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.contact-form.submitted {
    animation: submitSuccess 0.6s ease;
}

/* Focus visible for accessibility */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for buttons */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}