/* 1990s Nostalgic CSS Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Courier New", monospace;
    background-color: #c0c0c0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(0,0,0,0.1) 1px, transparent 0);
    background-size: 20px 20px;
    color: #000;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header and Navigation */
header {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border-bottom: 2px solid #808080;
    padding: 1rem;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
}

nav h1 {
    color: #000080;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 0 #fff;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

nav li a {
    display: block;
    padding: 0.5rem 1rem;
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 2px outset #c0c0c0;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.1s;
}

nav li a:hover {
    background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 100%);
    border: 2px inset #c0c0c0;
}

nav li a[aria-current="page"] {
    background: linear-gradient(to bottom, #a0a0a0 0%, #808080 100%);
    border: 2px inset #c0c0c0;
    color: #fff;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Sections */
section {
    background: #fff;
    border: 2px inset #c0c0c0;
    margin-bottom: 2rem;
    padding: 1.5rem;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2, h3, h4 {
    color: #000080;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.8rem;
    border-bottom: 3px double #000080;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.2rem;
}

/* Hero section */
.hero {
    text-align: center;
    background: linear-gradient(45deg, #ff0080 0%, #0080ff 100%);
    color: #fff;
    border: 3px outset #ff0080;
}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px outset #fff;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    object-fit: cover;
}

.hero-text {
    flex: 1;
    min-width: 250px;
}

.hero h2 {
    color: #fff;
    border-bottom: 3px double #fff;
    font-size: 2rem;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}

.typewriter {
    font-family: "Courier New", monospace;
    font-size: 1.2rem;
    margin-top: 1rem;
    background: #000;
    color: #00ff00;
    padding: 0.5rem;
    border: 2px inset #333;
    display: inline-block;
}

/* Update box */
.update-box {
    background: #ffffcc;
    border: 2px dashed #ff6600;
    padding: 1rem;
    margin: 1rem 0;
}

.update-box h4 {
    color: #ff6600;
}

/* Lists */
ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Links */
a {
    color: #0000ee;
    text-decoration: underline;
}

a:visited {
    color: #551a8b;
}

a:hover {
    background: #ffff00;
    color: #000;
}

/* Forms */
input, textarea, select {
    background: #fff;
    border: 2px inset #c0c0c0;
    padding: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
}

button {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    border: 2px outset #c0c0c0;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 100%);
}

button:active {
    border: 2px inset #c0c0c0;
}

/* Retro elements */
.retro-note {
    background: #ffff99;
    border: 2px solid #ffcc00;
    padding: 1rem;
    font-style: italic;
    margin: 1rem 0;
}

.blink {
    animation: blink 1s linear infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
}

th, td {
    border: 1px solid #808080;
    padding: 0.5rem;
    text-align: left;
}

th {
    background: linear-gradient(to bottom, #dfdfdf 0%, #c0c0c0 100%);
    font-weight: bold;
}

tr:nth-child(even) {
    background: #f0f0f0;
}

/* Footer */
footer {
    background: linear-gradient(to bottom, #c0c0c0 0%, #a0a0a0 100%);
    border-top: 2px solid #808080;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
}

.retro-footer {
    font-style: italic;
    margin-top: 0.5rem;
    color: #666;
}

/* Contact Me Styles */
.contact-info {
    background: #e6f3ff;
    border: 2px inset #c0c0c0;
    padding: 1.5rem;
    margin: 1rem 0;
}

.contact-info h4 {
    color: #000080;
    margin-bottom: 1rem;
    border-bottom: 1px solid #808080;
    padding-bottom: 0.5rem;
}

.contact-methods {
    display: grid;
    gap: 0.75rem;
}

.contact-method {
    background: #fff;
    padding: 0.75rem;
    border: 1px solid #808080;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.contact-method strong {
    display: inline-block;
    min-width: 100px;
    color: #333;
}

.contact-method a {
    color: #0000ee;
    text-decoration: underline;
    margin-left: 0.5rem;
}

.contact-method a:hover {
    background: #ffff00;
    color: #000;
}

.contact-form {
    background: #f0f0f0;
    border: 2px inset #c0c0c0;
    padding: 1.5rem;
    margin: 1rem 0;
}

.contact-form h4 {
    color: #000080;
    margin-bottom: 1rem;
    border-bottom: 1px solid #808080;
    padding-bottom: 0.5rem;
}

.contact-form button {
    background: linear-gradient(to bottom, #00aaff 0%, #0088cc 100%);
    border: 2px outset #0088cc;
    color: #fff;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
}

.contact-form button:hover {
    background: linear-gradient(to bottom, #0088cc 0%, #006699 100%);
}

.contact-form button:active {
    border: 2px inset #0088cc;
}

.form-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff9c4;
    border: 1px dashed #cc9900;
    font-size: 0.9rem;
    color: #666;
}

/* Work History Styles */
.work-history {
    margin: 1rem 0;
}

.job-entry {
    background: #fff;
    border: 2px inset #c0c0c0;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
}

.job-entry:before {
    content: "💼";
    position: absolute;
    top: -8px;
    left: -8px;
    background: #ffff99;
    border: 2px solid #ffcc00;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.job-header {
    margin-bottom: 0.75rem;
    border-bottom: 1px dashed #808080;
    padding-bottom: 0.5rem;
}

.job-header h4 {
    color: #000080;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.company {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
    margin: 0.25rem 0;
}

.duration {
    display: block;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.job-location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

.job-description p {
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.5;
}

.job-description ul {
    margin-left: 1.5rem;
    margin-bottom: 0;
}

.job-description li {
    margin-bottom: 0.4rem;
    color: #444;
}

/* Technologies section in job entries */
.technologies {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: #f0f8ff;
    border: 1px dashed #4169e1;
    border-radius: 3px;
}

.technologies strong {
    color: #000080;
    font-size: 0.9rem;
}

.tech-tags {
    display: inline-block;
    margin-left: 0.5rem;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    color: #333;
    background: #fff;
    padding: 0.2rem 0.4rem;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1);
}

/* Mobile responsiveness for technologies */
@media (max-width: 768px) {
    .technologies {
        margin: 0.5rem 0;
        padding: 0.4rem;
    }
    
    .tech-tags {
        display: block;
        margin: 0.3rem 0 0 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .technologies strong {
        font-size: 0.8rem;
    }
    
    .tech-tags {
        font-size: 0.75rem;
        padding: 0.15rem 0.3rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav li a {
        text-align: center;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .profile-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .typewriter {
        font-size: 1rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-method strong {
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .contact-method a {
        margin-left: 0;
    }
    
    .job-entry {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .job-header h4 {
        font-size: 1rem;
    }
    
    .company {
        font-size: 0.9rem;
    }
    
    .duration {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    nav h1 {
        font-size: 1.2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    section {
        padding: 1rem;
    }
    
    .contact-methods {
        gap: 0.5rem;
    }
    
    .contact-method {
        padding: 0.5rem;
    }
    
    .job-entry {
        padding: 0.75rem;
    }
    
    .job-description ul {
        margin-left: 1rem;
    }
}

/* Learning in progress indicators */
.learning-legend {
    background: #fff9c4;
    border: 1px dashed #ffcc00;
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

.learning-indicator {
    font-size: 1.1rem;
    margin-right: 0.3rem;
}

.learning {
    background: linear-gradient(45deg, #ffff99 0%, #ffcc99 100%);
    border: 1px solid #ff9900;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: bold;
    color: #cc6600;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    display: inline-block;
    margin: 0.1rem;
    font-size: 0.85rem;
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }
}

/* Mobile responsiveness for learning indicators */
@media (max-width: 768px) {
    .learning {
        font-size: 0.8rem;
        padding: 0.05rem 0.2rem;
        margin: 0.05rem;
    }
    
    .learning-legend {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}

@media (max-width: 480px) {
    .learning {
        font-size: 0.75rem;
        display: inline-block;
        margin: 0.1rem 0.1rem;
    }
    
    .learning-indicator {
        font-size: 1rem;
    }
}
