/* ============================================
   JACL.net Website Styles
   Professional Blue/Gray Theme
   ============================================ */

/* CSS Variables for Theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --text-dark: #1e293b;
    --text-light: #475569;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --error-color: #ef4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --max-width: 1200px;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================
   Layout & Container
   ============================================ */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

main {
    min-height: 100vh;
}

/* ============================================
   Navigation
   ============================================ */

.site-nav {
    background-color: var(--background-white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-nav .container {
    padding: 0 1.5rem;
}

.nav-home {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.nav-home:hover {
    background-color: var(--background-light);
    text-decoration: none;
}

/* ============================================
   Landing Page
   ============================================ */

.landing-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.landing-page .container {
    background-color: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem 2rem;
}

.page-content {
    min-height: 100vh;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    padding: 2rem 0;
}

.page-content .container {
    background-color: var(--background-white);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.site-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.125rem;
    color: var(--text-light);
    font-weight: 400;
}

.navigation-cards {
    margin-bottom: 2rem;
}

.primary-card-row {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.primary-card-row .card {
    max-width: 400px;
    width: 100%;
}

.secondary-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background-color: var(--background-white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-speed);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.card p {
    margin-bottom: 1.5rem;
}

/* ============================================
   Page Headers
   ============================================ */

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.content-section h2:first-child {
    margin-top: 0;
}

.intro {
    margin-bottom: 2rem;
}

/* ============================================
   Info Boxes & Service Cards
   ============================================ */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.info-box {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.info-box h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.service-card:hover {
    background-color: var(--background-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ============================================
   Resume & Experience Sections
   ============================================ */

.resume-section {
    margin: 2rem 0;
}

.experience-item {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.experience-item h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.company-name {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-item ul {
    margin-left: 1.5rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
}

/* ============================================
   Skills Section
   ============================================ */

.skills-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.skill-category {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skills-list {
    list-style: none;
    margin-left: 0;
}

.skills-list li {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: var(--background-white);
    border-radius: 4px;
    border-left: 3px solid var(--accent-color);
}

/* ============================================
   Special Sections
   ============================================ */

.status-notice {
    background-color: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
}

.status-notice h2 {
    color: #92400e;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.status-notice p {
    color: #78350f;
}

.linkedin-section {
    background-color: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 2rem 0;
}

.linkedin-section h3 {
    margin-bottom: 1rem;
}

.shop-links {
    list-style: none;
    margin-left: 0;
}

.shop-links li {
    margin-bottom: 0.75rem;
}

.shop-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.shop-links a:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.industries-list {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.industries-list ul {
    margin-top: 1rem;
}

/* ============================================
   Contact Forms
   ============================================ */

.contact-section {
    background-color: var(--background-white);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.contact-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--text-light);
}

/* Honeypot anti-spam field */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-speed);
    font-family: inherit;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-linkedin {
    background-color: #0077b5;
    color: white;
}

.btn-linkedin:hover {
    background-color: #005582;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--border-color);
}

.site-footer p {
    color: var(--text-light);
    margin-bottom: 0;
}

.site-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .container {
        padding: 1.5rem 1rem;
    }

    .landing-page .container {
        padding: 2rem 1.5rem;
    }

    .navigation-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .primary-card-row,
    .secondary-card-row {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .info-grid,
    .skills-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .contact-section {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .page-logo {
        max-width: 100%;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .site-header h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 0.95rem;
    }
}

/* ============================================
   Accessibility
   ============================================ */

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {

    .site-nav,
    .contact-section,
    .btn,
    .site-footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    .content-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}