/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e3a8a;
    color: white;
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    background-color: #1e3a8a;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.logo h1,
.logo .site-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.15);
}

nav ul li a:focus {
    background-color: rgba(255, 255, 255, 0.15);
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

nav ul li a:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 2px;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    flex: 1;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.main-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1e3a8a;
}

.hero p {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* Content pages */
.content-page {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content-page h2 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.content-page h3 {
    color: #2563eb;
    margin: 1.5rem 0 0.75rem;
}

.content-page p {
    margin-bottom: 1rem;
}

.content-page ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

/* Services grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.service-card {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: #1e3a8a;
    margin-bottom: 0.75rem;
}

/* Job listings */
.job-listing {
    background: #f1f5f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.job-listing h4 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* GitHub repos */
.github-repo {
    background: #f1f5f9;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.github-repo h3 {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

.github-repo a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.github-repo a:hover {
    text-decoration: underline;
}

/* Contact page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info h3,
.contact-form h3 {
    color: #1e3a8a;
    margin-bottom: 1.5rem;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h4 {
    color: #2563eb;
    margin-bottom: 0.25rem;
}

/* Consultation section */
.consultation-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 8px;
    text-align: center;
}

.consultation-section h3 {
    color: white;
    margin-bottom: 0.75rem;
}

.consultation-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.calendly-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: #1e3a8a;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendly-button:hover,
.calendly-button:focus {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: 3px solid #1e3a8a;
    outline-offset: 2px;
}

.calendly-icon {
    width: 20px;
    height: 20px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #767676;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1e3a8a;
    outline: 3px solid #1e3a8a;
    outline-offset: 2px;
}

button {
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

button:hover,
button:focus {
    background-color: #2563eb;
    outline: 3px solid #1e3a8a;
    outline-offset: 2px;
}

/* Footer */
footer {
    background-color: #1e3a8a;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: auto;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    nav ul li {
        margin: 0.25rem 0.5rem 0.25rem 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .main-logo {
        max-width: 200px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 0 1rem;
    }
    
    .content-page {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.25rem;
    }
    
    nav ul li {
        margin: 0.25rem 0.25rem 0.25rem 0;
    }
    
    nav ul li a {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero {
        padding: 1.5rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
}

  .bsky-link {
    --bsky: #1185FE; /* official Bluesky blue */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--bsky);
  }
  .bsky-icon {
    width: 24px;  /* adjust size as needed */
    height: auto;
    fill: currentColor; /* inherit from .bsky-link */
    vertical-align: middle;
  }
  .bsky-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 4px;
  }
  .bsky-link:hover { color: #0a6fde; } /* optional hover shade */
