/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-teal: #20B2AA;
    --dark-teal: #2F4F4F;
    --light-teal: #AFEEEE;
    --cream: #F5F5DC;
    --charcoal: #36454F;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Pixel Font */
    --pixel-font: 'Press Start 2P', monospace;
    
    /* Spacing */
    --pixel-size: 4px;
    --section-padding: 80px 0;
}

body {
    font-family: var(--pixel-font);
    background-color: var(--cream);
    color: var(--dark-teal);
    line-height: 1.6;
    font-size: 12px;
    overflow-x: hidden;
}

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

/* Pixel Text Effect */
.pixel-text {
    font-family: var(--pixel-font);
    text-rendering: pixelated;
    image-rendering: pixelated;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--dark-teal);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: var(--pixel-size) solid var(--primary-teal);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: var(--primary-teal);
    font-size: 16px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 10px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--light-teal);
}

.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-teal);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-teal) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-teal) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, var(--dark-teal) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

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

.hero-container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.pixel-avatar {
    margin: 0 auto 30px;
    width: 120px;
    height: 120px;
    position: relative;
}

.avatar-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-teal), var(--dark-teal));
    border: var(--pixel-size) solid var(--charcoal);
    position: relative;
}

.avatar-box::before {
    content: '👨‍💻';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
}

.hero-title {
    font-size: 24px;
    color: var(--dark-teal);
    margin-bottom: 20px;
    min-height: 40px;
}

.typing-text {
    border-right: 2px solid var(--primary-teal);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary-teal);
}

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

.hero-subtitle {
    font-size: 14px;
    color: var(--charcoal);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Pixel Buttons */
.pixel-btn {
    font-family: var(--pixel-font);
    font-size: 10px;
    padding: 15px 25px;
    border: 3px solid var(--dark-teal);
    background-color: var(--primary-teal);
    color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.pixel-btn:hover {
    background-color: var(--dark-teal);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px var(--charcoal);
}

.pixel-btn:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0px var(--charcoal);
}

.pixel-btn.secondary {
    background-color: transparent;
    color: var(--dark-teal);
}

.pixel-btn.secondary:hover {
    background-color: var(--light-teal);
    color: var(--dark-teal);
}

.pixel-btn.small {
    padding: 8px 15px;
    font-size: 8px;
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 20px;
    color: var(--dark-teal);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-teal);
}

/* About Section */
.about {
    background-color: var(--white);
}

.terminal-window {
    background-color: var(--charcoal);
    border: 3px solid var(--dark-teal);
    border-radius: 0;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 8px 8px 0px var(--primary-teal);
}

.terminal-header {
    background-color: var(--dark-teal);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-buttons {
    display: flex;
    gap: 5px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.btn-close { background-color: #ff5f56; }
.btn-minimize { background-color: #ffbd2e; }
.btn-maximize { background-color: #27ca3f; }

.terminal-title {
    color: var(--cream);
    font-size: 10px;
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
}

.terminal-text {
    color: var(--light-teal);
    font-size: 10px;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

/* Skills Section */
.skills {
    background-color: var(--cream);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(0, 150, 136, 0.1);
    border: 2px solid #009688;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.skill-item:hover {
    background: rgba(0, 150, 136, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 150, 136, 0.3);
}

.skill-item h3 {
    color: #00bcd4;
    margin: 0;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Experience Section */
 .experience {
     padding: 80px 0;
     background: var(--dark-bg);
 }
 
 .experience-timeline {
     max-width: 800px;
     margin: 0 auto;
     position: relative;
 }
 
 .experience-timeline::before {
     content: '';
     position: absolute;
     left: 50%;
     top: 0;
     bottom: 0;
     width: 3px;
     background: var(--primary-teal);
     transform: translateX(-50%);
 }
 
 .timeline-item {
     margin-bottom: 40px;
     position: relative;
     width: 50%;
 }
 
 .timeline-item:nth-child(odd) {
     left: 0;
     padding-right: 40px;
     text-align: right;
 }
 
 .timeline-item:nth-child(even) {
     left: 50%;
     padding-left: 40px;
 }
 
 .timeline-item::before {
     content: '';
     position: absolute;
     width: 15px;
     height: 15px;
     background: var(--primary-teal);
     border: 3px solid var(--dark-bg);
     border-radius: 50%;
     top: 20px;
 }
 
 .timeline-item:nth-child(odd)::before {
     right: -7.5px;
 }
 
 .timeline-item:nth-child(even)::before {
     left: -7.5px;
 }
 
 .timeline-date {
     color: var(--primary-teal);
     font-size: 10px;
     font-weight: bold;
     margin-bottom: 10px;
 }
 
 .timeline-content {
     background: rgba(0, 150, 136, 0.1);
     border: 2px solid var(--primary-teal);
     padding: 20px;
     border-radius: 8px;
 }
 
 .timeline-content h3 {
     color: var(--light-teal);
     font-size: 12px;
     margin-bottom: 5px;
 }
 
 .timeline-content h4 {
     color: var(--primary-teal);
     font-size: 10px;
     margin-bottom: 10px;
 }
 
 .timeline-content p {
     color: var(--light-gray);
     font-size: 8px;
     line-height: 1.6;
     margin-bottom: 15px;
 }
 
 .timeline-tech {
     display: flex;
     flex-wrap: wrap;
     gap: 5px;
 }
 
 .timeline-tech .tech-tag {
     background: var(--primary-teal);
     color: var(--dark-bg);
     padding: 3px 8px;
     font-size: 6px;
     border-radius: 3px;
 }
 
 /* Education Section */
 .education {
     padding: 80px 0;
     background: var(--charcoal);
 }
 
 .education-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 30px;
     max-width: 1000px;
     margin: 0 auto;
 }
 
 .education-card {
     background: rgba(0, 150, 136, 0.1);
     border: 2px solid var(--primary-teal);
     padding: 25px;
     border-radius: 8px;
     text-align: center;
     transition: all 0.3s ease;
 }
 
 .education-card:hover {
     background: rgba(0, 150, 136, 0.2);
     transform: translateY(-5px);
     box-shadow: 0 10px 20px rgba(0, 150, 136, 0.3);
 }
 
 .education-icon {
     font-size: 40px;
     margin-bottom: 15px;
 }
 
 .education-content h3 {
     color: var(--light-teal);
     font-size: 12px;
     margin-bottom: 8px;
 }
 
 .education-content h4 {
     color: var(--primary-teal);
     font-size: 10px;
     margin-bottom: 10px;
 }
 
 .education-year {
     color: var(--primary-teal);
     font-size: 8px;
     font-weight: bold;
     margin-bottom: 10px;
 }
 
 .education-content p {
     color: var(--light-gray);
     font-size: 8px;
     line-height: 1.6;
     margin-bottom: 15px;
 }
 
 .education-achievements {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     justify-content: center;
 }
 
 .achievement-tag {
     background: var(--light-teal);
     color: var(--dark-bg);
     padding: 4px 10px;
     font-size: 6px;
     border-radius: 3px;
     font-weight: bold;
 }
 
 /* Responsive Design for Timeline */
 @media (max-width: 768px) {
     .experience-timeline::before {
         left: 20px;
     }
     
     .timeline-item {
         width: 100%;
         left: 0 !important;
         padding-left: 50px !important;
         padding-right: 0 !important;
         text-align: left !important;
     }
     
     .timeline-item::before {
         left: 12.5px !important;
     }
 }
 
 /* Projects Section */
 .projects {
    background-color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background-color: var(--cream);
    border: 3px solid var(--dark-teal);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(47, 79, 79, 0.2);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-teal), var(--light-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid var(--dark-teal);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.placeholder-img {
    font-size: 60px;
    opacity: 0.7;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 12px;
    color: var(--dark-teal);
    margin-bottom: 10px;
}

.project-info p {
    font-size: 8px;
    color: var(--charcoal);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 4px 8px;
    font-size: 6px;
    border: 1px solid var(--dark-teal);
}

.project-links {
    display: flex;
    gap: 10px;
}

/* Contact Section */
.contact {
    background-color: var(--cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.pixel-form {
    background-color: var(--white);
    padding: 30px;
    border: 3px solid var(--primary-teal);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 8px;
    color: var(--dark-teal);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pixel-input,
.pixel-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--dark-teal);
    background-color: var(--cream);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--charcoal);
    resize: none;
}

.pixel-input:focus,
.pixel-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    background-color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--dark-teal);
    color: var(--cream);
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid var(--primary-teal);
}

.footer-text {
    font-size: 8px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 14px;
    }
    
    .pixel-btn {
        padding: 12px 20px;
        font-size: 8px;
    }
    
    .terminal-window {
        margin: 0 10px;
    }
    
    .project-card {
        margin: 0 10px;
    }
}

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

/* Loading Animation */
@keyframes pixelPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pixel-btn:hover {
    animation: pixelPulse 0.6s ease-in-out;
}