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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Mulish', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #1a1a2e;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000000;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ff6b35;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Contact Main Section */
.contact-main {
    min-height: 100vh;
    padding: 120px 0 80px;
    color: white;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

/* Office Information Section */
.office-info-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.2;
}

.office-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.offices-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.office-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.office-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.office-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 1.5rem;
    text-align: center;
}

.office-details {
    text-align: center;
}

.office-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #ccc;
}

.office-details strong {
    color: white;
    font-weight: 600;
}

.office-details a {
    color: #ff6b35;
    text-decoration: none;
    transition: all 0.3s ease;
}

.office-details a:hover {
    color: #e55a2e;
    text-decoration: underline;
}

/* Contact Form Section */
.contact-form-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Mulish', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
    font-weight: 500;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.error-message {
    color: #ff4757;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    display: block;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.submit-button {
    background: #ff6b35;
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.submit-button:hover:not(:disabled) {
    background: #e55a2e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Loading State */
.submit-button.loading {
    position: relative;
    color: transparent;
}

.submit-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    position: fixed;
    top: 100px;
    right: 30px;
    max-width: 400px;
    padding: 2rem;
    border-radius: 15px;
    z-index: 10001;
    transform: translateX(450px);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.message.show {
    transform: translateX(0);
    opacity: 1;
}

.success-message {
    background: linear-gradient(135deg, #2ed573, #7bed9f);
    color: white;
}

.error-message {
    background: linear-gradient(135deg, #ff4757, #ff6b7d);
    color: white;
}

.message-content {
    position: relative;
}

.message-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.message-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.close-message {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-message:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.05), rgba(0, 0, 0, 0.1));
    opacity: 0.5;
    z-index: 0;
    background: url('./assets/bgf.jpg') center/cover;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container,
    .contact-container,
    .footer-container {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .contact-content {
        gap: 4rem;
    }
    
    .contact-form-section {
        padding: 2.5rem;
    }
}

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 3rem 0;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .message {
        right: 20px;
        left: 20px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .message.show {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-container,
    .contact-container,
    .footer-container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .office-info-section h1 {
        font-size: 2.2rem;
    }
    
    .contact-form-section {
        padding: 2rem;
    }
    
    .offices-grid {
        gap: 2rem;
    }
    
    .office-card {
        padding: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px 18px;
        font-size: 1rem;
    }
    
    .submit-button {
        padding: 16px 30px;
        font-size: 1.1rem;
    }
    
    .message {
        padding: 1.5rem;
        right: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .nav-container,
    .contact-container,
    .footer-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .contact-main {
        padding: 100px 0 60px;
    }
    
    .office-info-section h1 {
        font-size: 1.8rem;
    }
    
    .office-description {
        font-size: 1.1rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .office-card {
        padding: 1.5rem;
    }
    
    .office-card h3 {
        font-size: 1.5rem;
    }
    
    .office-details p {
        font-size: 1rem;
    }
    
    .form-group {
        gap: 1.5rem;
    }
    
    .submit-button {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    .message {
        padding: 1.2rem;
        top: 90px;
    }
    
    .message-content h3 {
        font-size: 1.1rem;
    }
    
    .message-content p {
        font-size: 0.9rem;
    }
}

/* Focus states for accessibility */
.form-group input:focus,
.form-group textarea:focus,
.submit-button:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-form-section {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .form-group input,
    .form-group textarea {
        border: 2px solid #666;
    }
    
    .submit-button {
        border: 2px solid #ff6b35;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .message {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .message.show {
        transform: none;
    }
}