/* Laura S. Shrout - Web Resume Stylesheet */
/* Mobile-First Responsive Design */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Root Variables */
:root {
    --color-accent: #6366f1; /* Indigo Violet */
    --color-accent-dark: #4f46e5; /* Darker Indigo */
    --color-gray-50: #f9fafb;
    --color-gray-600: #4b5563;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-gray-50);
    color: var(--color-gray-800);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accent Color Utilities */
.text-accent {
    color: var(--color-accent);
}

.bg-accent {
    background-color: var(--color-accent);
}

.border-accent {
    border-color: var(--color-accent);
}

.hover\:bg-accent-dark:hover {
    background-color: var(--color-accent-dark);
}

/* Icon Alignment */
.link-icon {
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* =====================================================
   MOBILE-FIRST RESPONSIVE ENHANCEMENTS
   ===================================================== */

/* Navigation - Mobile Optimizations */
nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

nav .max-w-4xl {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navigation Name - Better Mobile Wrapping */
nav a.text-lg {
    font-size: 1rem; /* Smaller on mobile */
    font-weight: 700;
    color: var(--color-gray-900);
    word-break: break-word;
    white-space: normal;
    max-width: 50%; /* Prevent overflow */
    line-height: 1.2;
}

/* Navigation Links - Mobile Friendly */
nav .flex.space-x-4 {
    display: flex;
    gap: 0.5rem; /* Smaller gap on mobile */
    font-size: 0.875rem;
    font-weight: 500;
    flex-wrap: wrap; /* Allow wrapping if needed */
}

nav .flex.space-x-4 a {
    color: var(--color-gray-600);
    transition: color 150ms ease-in-out;
    padding: 0.25rem 0.5rem; /* Add padding for easier tapping */
}

nav .flex.space-x-4 a:hover {
    color: var(--color-accent);
}

/* Section Headings - Responsive Font Sizes */
h1 {
    font-size: 1.5rem; /* Mobile */
    line-height: 1.3;
}

h2 {
    font-size: 1.25rem; /* Mobile */
    line-height: 1.4;
}

h3 {
    font-size: 1.125rem; /* Mobile */
    line-height: 1.4;
}

/* Tablet and Desktop Sizes */
@media (min-width: 640px) {
    nav a.text-lg {
        font-size: 1.125rem;
        max-width: 60%;
    }
    
    nav .flex.space-x-4 {
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 768px) {
    nav a.text-lg {
        font-size: 1.25rem;
        max-width: none;
    }
    
    nav .max-w-4xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    nav .max-w-4xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Contact Links - Better Touch Targets */
.flex.flex-wrap a,
.flex.gap-4 a {
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px; /* Minimum touch target size */
}

/* Cards and Sections - Mobile Spacing */
section {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Skill Pills - Wrap Better on Mobile */
.flex.flex-wrap.gap-2 {
    gap: 0.5rem;
}

.flex.flex-wrap.gap-2 span {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

/* Main Content Container */
main {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

/* Footer - Mobile Friendly */
footer {
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
}

footer a {
    transition: color 150ms ease-in-out;
}

footer a:hover {
    color: var(--color-accent);
}

/* Improved Readability on Mobile */
p, li {
    line-height: 1.6;
}

/* Ensure images/icons don't overflow */
img, svg {
    max-width: 100%;
    height: auto;
}
