/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    color: #0f172a;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: #475569;
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    margin: 0;
    line-height: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #0f172a;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin: 10px;
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #0f172a;
}

/* Sections General */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
}

/* About Section */
.about {
    background-color: #fff;
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.2rem;
}

.about-content p {
    font-size: 1.1rem;
}

/* Services / Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 4px solid #2563eb;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Certifications Section */
.certifications {
    background-color: #e2e8f0;
}

.cert-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.cert-badge {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cert-badge h4 {
    color: #2563eb;
    margin-bottom: 10px;
}

.cert-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 50px 0 20px;
}

footer h3, footer p {
    color: #fff;
}

footer p {
    color: #94a3b8;
    margin-bottom: 5px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-bottom: 1px solid #334155;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-info, .footer-links {
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
}

/* Contact Modal */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 15ms ease, visibility 15ms ease;
}

.contact-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.contact-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.96) translateY(8px);
    transition: transform 100ms ease;
}

.contact-modal.is-open .contact-modal-dialog {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.contact-modal-dialog h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    padding-right: 40px;
}

.contact-modal-subtitle {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    width: 100%;
    margin: 8px 0 0;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.footer-contact-btn {
    margin: 16px 0 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

body.modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media(max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 25px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}