/* Base Styles - Retro Webcore */
body {
    background-color: var(--color-dark);
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 255, 255, 0.03) 10px, rgba(0, 255, 255, 0.03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(255, 0, 255, 0.03) 10px, rgba(255, 0, 255, 0.03) 20px),
        radial-gradient(circle at 20% 30%, rgba(0, 255, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    color: var(--color-light);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    min-height: 100vh;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section */
.section {
    padding: var(--spacing-4xl) 0;
}

.section--alt {
    background-color: var(--color-surface, var(--color-dark-light));
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
}

.section__title {
    font-family: var(--font-family-minecraft);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
    text-shadow: var(--glow-primary);
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: var(--radius-full);
}

.section__subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--color-text-secondary, var(--color-gray-light));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-minecraft);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary, var(--color-gray-light));
}

/* Links */
a {
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-light);
}

/* Code */
code {
    font-family: var(--font-family-mono);
    background-color: var(--color-dark-light);
    color: var(--color-accent-light);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    border: 1px solid var(--color-gray);
}

/* Lists */
ul, ol {
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-secondary, var(--color-gray-light));
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

::-moz-selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Focus States */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: var(--font-weight-bold);
}

.font-medium {
    font-weight: var(--font-weight-medium);
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-secondary);
}

.text-accent {
    color: var(--color-accent);
}

.bg-primary {
    background-color: var(--color-primary);
}

.bg-secondary {
    background-color: var(--color-secondary);
}

.bg-accent {
    background-color: var(--color-accent);
}

.hidden {
    display: none;
}

.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;
}

h1, h2, h3, h4, h5, h6,
.nav__logo,
.section__title,
.hero__title,
.btn,
.feature-card__title,
.job-card__title,
.card__title {
    letter-spacing: 0.05em;
    line-height: 1.4;
}

/* Adjust font sizes for pixel font */
h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.3;
}

.section__title {
    font-size: 1.75rem;
}

.btn {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.nav__logo {
    font-size: 1rem;
}

/* Responsive adjustments for pixel font */
@media (max-width: 767px) {
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1rem;
    }
    
    .hero__title {
        font-size: 1.75rem;
    }
    
    .section__title {
        font-size: 1.5rem;
    }
    
    .btn {
        font-size: 0.65rem;
    }
}

@media (max-width: 575px) {
    h1 {
        font-size: 1.25rem;
    }
    
    h2 {
        font-size: 1rem;
    }
    
    .hero__title {
        font-size: 1.5rem;
    }
    
    .section__title {
        font-size: 1.25rem;
    }
}
/* Retro
 Webcore Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
    }
    to {
        text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary), 0 0 30px var(--color-primary);
    }
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.5; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Retro Borders */
.retro-border {
    border: 3px solid;
    border-image: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent), var(--color-neon-pink)) 1;
    box-shadow: var(--glow-primary);
}

/* Glowing Text */
.glow-text {
    text-shadow: var(--glow-primary);
    animation: glow 2s ease-in-out infinite alternate;
}