/* Custom Styles for Ryan Fitzgerald Portfolio */

/* Font families */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Base typography */
body {
    font-family: var(--font-sans);
}

.font-mono {
    font-family: var(--font-mono);
}

/* IBM Plex Mono 700 weight for main heading */
.font-mono-bold {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 700;
    color: oklch(0.278 0.033 256.848);
}

/* Ryan Fitzgerald name styling */
.name-highlight {
    color: rgb(29, 78, 216);
}

/* Senior Software Engineer subtitle styling */
.subtitle-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 500;
    color: oklch(0.446 0.03 256.802);
    font-size: 20px;
    line-height: 32px;
}

/* Navigation styling */
.nav-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: rgb(0, 0, 0);
    font-size: 16px;
    line-height: 24px;
}

/* Large section headings styling */
.section-heading-large {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 700;
    color: oklch(0.21 0.034 264.665);
    font-size: 72px;
    line-height: 72px;
}

/* Move Certifications heading up to avoid overlap with card */
.certifications-heading-fix {
        margin-top: -24px;
}
@media (min-width: 1024px) {
    .certifications-heading-fix {
        margin-top: -110px;
    }
}


/* Body text styling */
.body-text-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: oklch(0.446 0.03 256.802);
    font-size: 24px;
    line-height: 39px;
}

/* Skill tags styling */
.skill-tag-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 500;
    color: oklch(0.278 0.033 256.848);
    font-size: 18px;
    line-height: 28px;
    padding: 0.375rem 0.75rem;
    background-color: rgb(229 231 235);
    border-radius: 9999px;
    transition: all 0.2s ease;
    border: 1px solid rgb(209 213 219);
}

.skill-tag-mono:hover {
    background-color: rgb(209 213 219);
    border-color: rgb(156 163 175);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Project titles styling */
.project-title-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 700;
    color: oklch(0.21 0.034 264.665);
    font-size: 24px;
    line-height: 32px;
    margin-top: 0.25rem;
}

/* Project descriptions styling */
.project-description-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: oklch(0.446 0.03 256.802);
    font-size: 18px;
    line-height: 29px;
    padding-right: 3rem;
}

/* Project technology tags styling */
.project-tech-tag-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 500;
    color: rgb(255, 255, 255);
    font-size: 14px;
    line-height: 20px;
    padding: 0.25rem 0.625rem;
    background-color: rgb(17 24 39);
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.project-tech-tag-mono:hover {
    background-color: rgb(31 41 55);
}

/* Job and degree titles styling */
.job-title-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 600;
    color: oklch(0.21 0.034 264.665);
    font-size: 20px;
    line-height: 28px;
}

/* IBM Plex Mono 400 weight styling */
.mono-400-blue {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: rgb(29, 78, 216);
    font-size: 18px;
    line-height: 28px;
}

/* IBM Plex Mono 400 weight with OKLCH color */
.mono-400-gray {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: oklch(0.446 0.03 256.802);
    font-size: 16px;
    line-height: 24px;
}

/* IBM Plex Mono 400 weight for project labels */
.project-label-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
}

/* IBM Plex Mono 400 weight - small text variant */
.mono-400-small {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: oklch(0.551 0.027 264.364);
    font-size: 14px;
    line-height: 20px;
}

/* IBM Plex Mono 700 weight for headings */
.mono-700-heading {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 700;
    color: oklch(0.278 0.033 256.848);
    font-size: 24px;
    line-height: 32px;
}

.footer-nav-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: oklch(0.278 0.033 256.848);
    font-size: 14px;
    line-height: 20px;
}

.footer-copyright-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 400;
    color: oklch(0.551 0.027 264.364);
    font-size: 14px;
    line-height: 20px;
}

.hello-greeting-mono {
    font-family: "IBM Plex Mono", monospace;
    font-style: normal;
    font-weight: 700;
    color: oklch(0.373 0.034 259.733);
    font-size: 48px;
    line-height: 48px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Clean transitions */
* {
    transition: all 0.3s ease;
}

/* Navigation styling */
nav {
    backdrop-filter: blur(10px);
}

/* Hero section styling */
.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Social icon hover effects */
.social-icon:hover {
    transform: translateY(-2px);
}

.project-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

/* Navigation backdrop blur */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Fade-in animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animation-delay-400 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* ======================================
   RESPONSIVE DESIGN IMPROVEMENTS
   ====================================== */

/* Mobile-first responsive typography */
.font-mono-bold {
    font-size: clamp(2rem, 8vw, 6rem) !important;
    line-height: clamp(2rem, 8vw, 6rem) !important;
}

/* Responsive hero section */
@media (max-width: 640px) {
    .hero-section {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        padding: 1rem;
    }
    
    .hello-greeting-mono {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .subtitle-mono {
        font-size: 16px;
        line-height: 24px;
    }
}

/* Responsive navigation */
@media (max-width: 768px) {
    .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-menu:not(.hidden) {
        transform: translateX(0);
    }
}

/* Responsive grid layouts */
@media (max-width: 1024px) {
    .lg\:grid-cols-12 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lg\:col-span-4,
    .lg\:col-span-8 {
        grid-column: span 1;
    }
}

/* Responsive skill tags */
@media (max-width: 480px) {
    .skill-tag-mono {
        font-size: 14px;
        line-height: 20px;
        padding: 0.25rem 0.5rem;
    }
    
    .flex-wrap {
        gap: 0.5rem;
    }
}

/* Responsive project cards */
@media (max-width: 640px) {
    .project-card {
        margin-bottom: 1.5rem;
    }
    
    .project-title-mono {
        font-size: 18px;
        line-height: 24px;
    }
}

/* Responsive social icons */
@media (max-width: 480px) {
    .social-icons svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-nav-mono {
        font-size: 14px;
        line-height: 20px;
    }
    
    .footer-copyright-mono {
        font-size: 12px;
        line-height: 16px;
    }
}

/* Touch-friendly button sizes */
@media (max-width: 768px) {
    button, .button, a[role="button"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Improve text readability on small screens */
@media (max-width: 640px) {
    .body-text-mono {
        font-size: 14px;
        line-height: 22px;
    }
    
    .mono-400-gray {
        font-size: 14px;
        line-height: 22px;
    }
    
    .section-heading-large {
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: clamp(2rem, 6vw, 3rem);
    }
}

/* Responsive spacing */
@media (max-width: 640px) {
    .p-8 { padding: 1rem; }
    .px-8 { padding-left: 1rem; padding-right: 1rem; }
    .py-8 { padding-top: 1rem; padding-bottom: 1rem; }
    .mt-8 { margin-top: 1rem; }
    .mb-8 { margin-bottom: 1rem; }
    .space-y-8 > :not([hidden]) ~ :not([hidden]) {
        margin-top: 1rem;
        margin-bottom: 0;
    }
}

/* High DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .skill-tag-mono {
        border-width: 0.5px;
    }
    
    svg {
        shape-rendering: geometricPrecision;
    }
}

/* Landscape mobile optimizations */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .font-mono-bold {
        font-size: clamp(1.5rem, 6vw, 4rem) !important;
        line-height: clamp(1.5rem, 6vw, 4rem) !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .animate-fade-in {
        opacity: 1 !important;
    }
}

/* Dark mode improvements for better mobile visibility */
@media (prefers-color-scheme: dark) {
    .skill-tag-mono {
        background-color: rgb(55 65 81);
        border-color: rgb(75 85 99);
        color: rgb(229 231 235);
    }
    
    .skill-tag-mono:hover {
        background-color: rgb(75 85 99);
        border-color: rgb(107 114 128);
    }
}

/* Remove ALL focus outlines - no blue boxes or lines */
*:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Specifically remove focus from all clickable elements */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
nav a:focus,
header a:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Navigation links - no focus indication at all */
.nav-mono:focus {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Social media links - no focus indication */
.social-links a:focus {
    outline: none !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Loading states */
.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

img:not(.loaded) {
    opacity: 0;
    transform: translateY(10px);
}

/* Custom viewport height for mobile browsers */
.min-h-screen {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

.animation-delay-600 {
    animation-delay: 0.6s;
    opacity: 0;
}