/* Fedora Theme - Modern, clean design system */
:root {
    /* Primary Colors */
    --fedora-blue: #294172;      /* Primary brand color */
    --fedora-accent: #51A2DA;    /* Secondary accent */
    --fedora-light: #729FCF;     /* Lighter accent for hover states */

    /* Background System */
    --bg-primary: #0C1218;       /* Main background */
    --bg-secondary: #1C242C;     /* Surface elements */
    --bg-elevated: #2A333D;      /* Elevated components */

    /* Text System */
    --text-primary: #FFFFFF;     /* Primary text */
    --text-secondary: #B2C1D1;   /* Secondary text */
    --text-muted: #8494A4;       /* Muted text */

    /* Interactive States */
    --hover-bg: #3A434D;         /* Hover background */
    --active-bg: #51A2DA20;      /* Active state with opacity */
    --gitlab-color: #FC6D26;     /* GitLab brand color */

    /* Semantic Colors */
    --success: #4AD15F;          /* Success states */
    --warning: #FFB86B;          /* Warning states */
    --error: #FF5C5C;           /* Error states */
    --info: #51A2DA;            /* Info states */

    /* Border System */
    --border-light: #2A333D;    /* Light borders */
    --border-medium: #3A434D;   /* Medium borders */

    /* Shadow System */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.14);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.header-actions a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
}

.header-actions a:hover {
    background-color: var(--hover-bg);
    transform: translateY(-1px);
}

.header-actions .github::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23fff"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg>') no-repeat center;
}

.header-actions .gitlab::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FC6D26"><path d="M23.955 13.587l-1.342-4.135-2.664-8.189a.455.455 0 00-.867 0L16.418 9.45H7.582L4.918 1.263a.455.455 0 00-.867 0L1.386 9.45.045 13.587a.924.924 0 00.331 1.023L12 23.054l11.624-8.443a.924.924 0 00.331-1.024"/></svg>') no-repeat center;
}

/* Coming soon page styles */
.coming-soon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.coming-soon-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes knightRide {
    0%, 100% {
        opacity: 0.4;
        transform: translateX(-50%) scaleX(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scaleX(1);
    }
}
 

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-header {
    background-color: var(--bg-secondary);
    backdrop-filter: blur(8px) saturate(120%);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

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

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-link:after {
    display: none;
}

.logo-link img {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    margin: 0 2rem;
}

.main-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--text-primary);
    background-color: var(--hover-bg);
}

.dropdown {
    position: relative;
}

/* Animated gradient underline for nav links (hover/focus/active) */
.main-nav ul li a {
    position: relative;
    overflow: visible;
}
/* Chasing light effect for nav buttons with prefers-reduced-motion support.
   Creates a light that appears to chase around the button border on hover.
   The effect fades in/out smoothly and respects reduced motion preferences. */
.main-nav ul li a {
    position: relative;
    z-index: 0;
    isolation: isolate; /* Create stacking context */
}

/* Base border setup - always visible but very subtle */
.main-nav ul li a::before {
    content: '';
    position: absolute;
    inset: -3px; /* Uniform border width */
    border-radius: 8px;
    background: 
        linear-gradient(90deg, 
            var(--fedora-blue) 0%, 
            var(--fedora-accent) 50%,
            var(--fedora-blue) 100%
        );
    opacity: 0.1;
    transition: opacity 300ms ease;
    z-index: -2;
}

/* Chase light effect */
.main-nav ul li a::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 8px;
    background: 
        linear-gradient(90deg,
            transparent 0%,
            var(--fedora-accent) 25%,
            var(--fedora-light) 50%,
            var(--fedora-accent) 75%,
            transparent 100%
        );
    background-size: 200% 100%;
    opacity: 0;
    z-index: -1;
    transition: opacity 300ms ease;
}

@keyframes chase {
    to {
        background-position: -200% 0;
    }
}

/* Show the chase effect on hover/focus */
.main-nav ul li a:hover::before,
.main-nav ul li a:focus::before,
.main-nav ul li a.active::before {
    opacity: 0.2;
}

.main-nav ul li a:hover::after,
.main-nav ul li a:focus::after,
.main-nav ul li a.active::after {
    opacity: 1;
    animation: chase 2s linear infinite;
}

/* Reduced motion - disable animations but keep hover states */
@media (prefers-reduced-motion: reduce) {
    .main-nav ul li a::after {
        animation: none !important;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--fedora-accent) 50%,
            transparent 100%
        );
        background-size: 100% 100%;
        transition: opacity 0ms;
    }
}

/* Add the same animated underscore for page headings inside .content */
.content h1 {
    position: relative;
    display: inline-block; /* shrink-wrap to text so underline centers */
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}
.content h1::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    height: 4px;
    width: 60%;
    background: linear-gradient(90deg, rgba(81,162,218,0.95), rgba(41,65,114,0.95));
    border-radius: 3px;
    transform: translateX(-50%);
    animation: knightRide 3000ms linear infinite;
}

/* Make sure focus is accessible */
.main-nav ul li a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(81,162,218,0.12);
    border-radius: 6px;
}

.dropdown-toggle::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 0.5rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
}

.sr-only {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* added line */
}

.cta-logo {
    width: 20px;
    height: auto;
    margin-right: 0.5rem;
}

.icon {
    width: 16px;
    height: 16px;
}

/* CTA styles */
.cta .cta-content .button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* NUX Hint box */
.nux-hint {
    padding: 2rem 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
    border-top: 1px solid rgba(255,255,255,0.03);
}
.nux-hint .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}
.nux-title {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-weight: 600;
}
.nux-code {
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 1rem;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, 'Courier New', monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    word-break: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}
.nux-meta {
    display: flex;
    justify-content: flex-end;
    color: var(--text-muted);
}
.hero {
    min-height: calc(90vh - 72px);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 5rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, var(--fedora-blue) 0%, transparent 70%),
        radial-gradient(circle at 80% 70%, var(--fedora-accent) 0%, transparent 70%);
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--fedora-blue), var(--fedora-accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features {
    padding: 6rem 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-medium) 15%, 
        var(--border-medium) 85%, 
        transparent 100%
    );
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, rgba(81,162,218,0.95), rgba(41,65,114,0.95));
    border-radius: 2px;
    animation: knightRide 3000ms linear infinite;
}

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

.cta {
    padding: 6rem 0;
    background-color: var(--bg-primary);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.cta-content h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    height: 4px;
    width: 60%;
    background: linear-gradient(90deg, rgba(81,162,218,0.95), rgba(41,65,114,0.95));
    border-radius: 3px;
    transform: translateX(-50%);
    animation: knightRide 3000ms linear infinite;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.coming-soon:hover {
    background-color: transparent !important;
    transform: none !important;
}

.content {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content h2,
.content h3 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content h2 {
    font-size: 2rem;
}

.content h3 {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.content a {
    color: var(--fedora-accent);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    position: relative;
    display: inline-block;
}

.content a:hover {
    color: var(--fedora-light);
    transform: translateY(-1px);
}

/* Specific Page Styles */
body.about,
body.foldermaker,
body.projects {
    background-color: var(--bg-primary);
    min-height: 100vh;
}

footer {
    background-color: var(--bg-elevated);
    color: var(--text-secondary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--fedora-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-medium);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Respect reduced motion preferences for heading animations */
@media (prefers-reduced-motion: reduce) {
    .content h1::after,
    .section-title::after,
    .cta-content h2::after {
        animation: none;
        opacity: 0.6;
    }
}
