/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1d3a5a;
    --secondary-color: #4a7fa0;
    --accent-gold: #c5a572;
    --dark-bg: #2c3e50;
    --light-bg: #f8f9fa;
    --text-dark: #333333;
    --text-light: #ffffff;
    --gray-bg: rgba(52, 58, 64, 0.75);
}

body {
    font-family: 'League Spartan', Helvetica, arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'League Spartan', arial, helvetica, sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gray-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.5s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s ease;
}

.header.shrink .header-container {
    padding: 15px 40px;
}

/* Hamburger Menu Button (Mobile Only) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    max-width: 300px;
    height: 100%;
    background: var(--primary-color);
    z-index: 1600;
    transition: left 0.3s ease;
    padding-top: 80px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.mobile-menu-items a {
    color: var(--text-light);
    font-family: 'League Spartan', arial, helvetica, sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-items a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 40px;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.nav-link {
    color: var(--text-light);
    font-family: 'League Spartan', arial, helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo {
    height: 96px;
    width: auto;
    transition: all 0.5s ease;
}

.header.shrink .logo {
    height: 60px;
}

.nav-right {
    justify-content: flex-end;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    background-color: #4a7fa0;
    padding: 180px 20px 80px;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    color: var(--text-light);
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    font-family: 'League Spartan', arial, helvetica, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-submit {
    background: var(--text-light);
    color: var(--text-dark);
    width: 100%;
}

.btn-submit:hover {
    background: #e9ecef;
}

/* Services Section */
.services {
    background: var(--primary-color);
    padding: 80px 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-light);
}

.service-item {
    max-width: 1200px;
    margin: 0 auto 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item-reverse {
    direction: rtl;
}

.service-item-reverse > * {
    direction: ltr;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-content {
    color: var(--text-light);
}

.service-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
}

.service-description {
    font-size: 18px;
    line-height: 1.8;
}

/* Value Proposition Section */
.value-proposition {
    background: var(--light-bg);
    padding: 80px 20px 20px 20px;
    text-align: center;
}

.value-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-bg);
}

/* Location Section */
.location {
    background: var(--light-bg);
    padding: 20px 20px 80px;
    text-align: center;
}

.location-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Certifications Section */
.certifications {
    background: var(--light-bg);
    padding: 60px 20px 100px;
}

.cert-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}

.cert-item img {
    height: 200px;
    width: auto;
    transition: transform 0.3s ease;
}

.cert-item img:hover {
    transform: scale(1.05);
}

/* Jobs Hero Section */
.jobs-hero {
    min-height: 50vh;
    padding: 180px 20px 80px;
}

.jobs-hero .hero-title {
    font-size: 56px;
    font-weight: 800;
}

/* Jobs Application Section */
.jobs-application {
    background: var(--primary-color);
    padding: 80px 20px;
}

.jobs-container {
    max-width: 800px;
    margin: 0 auto;
}

.jobs-subtitle {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.jobs-application form {
    width: 100%;
}

.jobs-application input,
.jobs-application textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'League Spartan', Helvetica, arial, sans-serif;
    font-size: 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.jobs-application input::placeholder,
.jobs-application textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.jobs-application input:focus,
.jobs-application textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.jobs-application .form-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
    text-align: center;
}

.jobs-application .form-footer a {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* Contact Section */
.contact {
    background: var(--primary-color);
    padding: 80px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-subtitle {
    font-size: 24px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: 'League Spartan', Helvetica, arial, sans-serif;
    font-size: 16px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.form-footer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 15px;
}

.form-footer a {
    color: var(--accent-gold);
    text-decoration: underline;
}

.contact-info {
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-company {
    font-size: 26px;
    margin-bottom: 20px;
}

.contact-address,
.contact-phone,
.contact-email {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-email a {
    color: var(--accent-gold);
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Why Section */
.why-section {
    background: var(--light-bg);
    padding: 80px 20px;
}

.why-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 30px;
}

.why-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dark);
}

.why-text em {
    font-style: italic;
    font-weight: 600;
}

.why-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Subscribe Section */
.subscribe {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/subscribe-bg.jpg') center/cover no-repeat;
    background-color: #8b7355;
    padding: 80px 20px;
    text-align: center;
}

.subscribe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.subscribe-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    color: var(--text-light);
}

.subscribe-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.subscribe-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.subscribe-form input {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid var(--text-light);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 3px;
}

.subscribe-form input:focus {
    outline: none;
    background: var(--text-light);
}

/* Footer */
.footer {
    background: #1a1a1a;
    padding: 40px 20px;
}

.footer-nav {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-light);
    font-family: 'League Spartan', arial, helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-nav a:hover {
    color: var(--accent-gold);
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    
    .service-item,
    .contact-container,
    .why-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-item-reverse {
        direction: ltr;
    }
    
    .service-image {
        order: -1;
    }
    
    .cert-container {
        gap: 40px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .header.shrink .header-container {
        padding: 15px 20px;
    }
    
    /* Show hamburger, hide desktop nav */
    .hamburger {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .logo {
        height: 80px;
    }
    
    .header.shrink .logo {
        height: 45px;
    }
    
    .logo-container {
        flex: 0;
        margin: 0 auto;
    }
    
    .hero {
        padding: 140px 20px 60px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .jobs-hero .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .service-description {
        font-size: 16px;
    }
    
    .value-title {
        font-size: 32px;
    }
    
    .location-text {
        font-size: 18px;
    }
    
    .cert-item img {
        height: 150px;
    }
    
    .contact-container {
        gap: 50px;
    }
    
    .why-title {
        font-size: 32px;
    }
    
    .subscribe-title {
        font-size: 36px;
    }
    
    .footer-nav {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .jobs-hero .hero-title {
        font-size: 36px;
    }
    
    .nav-link {
        font-size: 11px;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 12px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .service-item {
        margin-bottom: 40px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    z-index: 10001;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.modal-body {
    text-align: center;
    padding: 20px 0;
}

.spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.spinner-container::after {
    content: 'Sending...';
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'League Spartan', sans-serif;
}

.modal-message {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    font-family: 'League Spartan', sans-serif;
    padding: 20px 0;
    display: none;
}

.modal-message.active {
    display: block;
}

.modal-message.success {
    color: #28a745;
}

.modal-message.error {
    color: #dc3545;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        padding: 30px 25px;
        max-width: 90%;
    }
    
    .modal-message {
        font-size: 18px;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        width: 95%;
    }
    
    .modal-message {
        font-size: 16px;
    }
    
    .modal-close {
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}
