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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Share Tech Mono', monospace;
    line-height: 1.4;
    color: #000000;
    background-color: #008080;
    background-image:
        linear-gradient(45deg, #008080 25%, transparent 25%),
        linear-gradient(-45deg, #008080 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #008080 75%),
        linear-gradient(-45deg, transparent 75%, #008080 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #c0c0c0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid #000000;
    box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #808080;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: 'VT323', monospace;
}

.nav-logo a:hover {
    color: #1d4ed8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    padding: 5px 10px;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: #000000;
    background: #ffffff;
    border: 1px solid #000000;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Sections */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20;
}

/* Override section styles for windows */
#home,
#projects,
#social {
    position: absolute;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    min-height: 400px;
    width: 500px;
    z-index: 20;
    padding: 0;
    margin: 0;
    left: 100px;
    top: 100px;
    overflow: hidden;
    display: block !important;
}

#home {
    width: 1100px;
    min-width: 900px;
    max-width: 1000px;
    min-height: 550px;
    height: 550px;
    left: 50px;
    top: 80px;
}

#projects {
    left: 200px;
    top: 150px;
}

#social {
    width: 1500px;
    min-width: 1500px;
    max-width: 1500px;
    min-height: 600px;
    height: 600px;
    left: 300px;
    top: 200px;
}

#stella {
    position: absolute;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    width: 1100px;
    min-width: 900px;
    max-width: 1200px;
    min-height: 550px;
    height: 550px;
    left: 100px;
    top: 120px;
    z-index: 20;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block !important;
}

#nick {
    position: absolute;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    width: 1100px;
    min-width: 900px;
    max-width: 1200px;
    min-height: 550px;
    height: 550px;
    left: 150px;
    top: 150px;
    z-index: 20;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block !important;
}

#hardware {
    position: absolute;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #808080;
    width: 1000px;
    min-width: 1000px;
    max-width: 1000px;
    min-height: 500px;
    height: 500px;
    left: 120px;
    top: 140px;
    z-index: 20;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: block !important;
}

.window-content {
    padding: 20px;
}

.window-titlebar {
    background: linear-gradient(to right, #000080, #1084d0);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    font-family: 'VT323', monospace;
    cursor: move;
    user-select: none;
}

/* Remove .container margin/padding for windows */
#home .container,
#projects .container,
#social .container {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'VT323', monospace;
    border: 2px solid #000000;
    padding: 20px;
    background: #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.highlight {
    color: #000080;
    font-weight: bold;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-family: 'VT323', monospace;
    border: 1px solid #000000;
    padding: 10px 15px;
    background: #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #c0c0c0;
    color: #000000;
    border: 2px solid #000000;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
}

.btn-secondary {
    background-color: #c0c0c0;
    color: #000000;
    border: 2px solid #000000;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    text-transform: uppercase;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-pic {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #000000;
    font-family: 'VT323', monospace;
    border: 2px solid #000000;
    padding: 15px;
    background: #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'VT323', monospace;
    border: 1px solid #000000;
    padding: 10px;
    background: #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

/* Projects Section */
#projects {
    background: #ffffff;
    color: #000000;
    position: absolute;
    top: 150px;
    left: 200px;
    cursor: default;
    overflow: hidden;
    border: 2px solid #000000;
    margin: 20px;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    width: 1000px;
    min-width: 1000px;
    max-width: 1000px;
    min-height: 700px;
    height: 700px;
    z-index: 20;
}

#projects.dragging {
    opacity: 0.8;
    z-index: 9999;
}

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

.project-card {
    background: #ffffff;
    border-radius: 0;
    padding: 2rem;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
    border-color: #000080;
}

.project-image {
    width: 80px;
    height: 80px;
    background: #c0c0c0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000000;
    margin-bottom: 1.5rem;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    border: 2px solid #000000;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
    font-family: 'VT323', monospace;
}

.project-description {
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: #c0c0c0;
    color: #000000;
    padding: 0.25rem 0.75rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #000000;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: #000080;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'VT323', monospace;
}

.project-link:hover {
    color: #000000;
    text-decoration: underline;
}

/* Social Media Section */
#social {
    background: #ffffff;
    color: #000000;
    position: absolute;
    top: 200px;
    left: 300px;
    cursor: default;
    overflow: hidden;
    border: 2px solid #000000;
    margin: 20px;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    width: 900px;
    min-width: 900px;
    max-width: 900px;
    min-height: 600px;
    height: 600px;
    z-index: 20;
}

#social.dragging {
    opacity: 0.8;
    z-index: 9999;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.social-card {
    background: #ffffff;
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    transition: all 0.3s ease;
    border: 2px solid #000000;
}

.social-card:hover {
    transform: translateY(-2px);
    box-shadow: inset -1px -1px 0 #ffffff, inset 1px 1px 0 #808080;
    border-color: #000080;
}

.social-icon {
    width: 80px;
    height: 80px;
    background: #c0c0c0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #000000;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    border: 2px solid #000000;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
    font-family: 'VT323', monospace;
}

.social-description {
    color: #000000;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #008080;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    border-top: 2px solid #000000;
    box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #808080;
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: #fff;
    font-family: 'VT323', monospace;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
    transition: filter 0.2s;
}

.desktop-icon i {
    font-size: 2.2rem;
    margin-bottom: 2px;
    color: #fff;
    text-shadow: 1px 1px 0 #000, 2px 2px 0 #000;
}

.desktop-icon span {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 3px;
    margin-top: 2px;
    color: #fff;
    text-shadow: 1px 1px 0 #000;
}

.desktop-icon:active,
.desktop-icon:focus {
    filter: brightness(1.2);
}

/* Windows (sections) */
.window-closed {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.window-open {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Taskbar */
.taskbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    height: 40px;
    background: #c0c0c0;
    border-top: 2px solid #fff;
    box-shadow: 0 -2px 0 #808080;
    display: flex;
    align-items: center;
    z-index: 100;
    font-family: 'VT323', monospace;
}

.taskbar-start {
    margin-left: 8px;
}

.start-btn {
    background: #c0c0c0;
    border: 2px outset #fff;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 2px 18px 2px 8px;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 1px 1px 0 #808080;
}

.start-btn:active {
    border: 2px inset #808080;
}

.taskbar-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0 16px;
    padding: 0;
}

.taskbar-item {
    background: #c0c0c0;
    border: 2px outset #fff;
    color: #000;
    font-size: 1rem;
    padding: 2px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    box-shadow: 1px 1px 0 #808080;
}

.taskbar-item:active {
    border: 2px inset #808080;
}

.taskbar-clock {
    margin-left: auto;
    margin-right: 16px;
    color: #000;
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    background: #c0c0c0;
    border: 2px inset #808080;
    padding: 2px 12px;
    border-radius: 2px;
    min-width: 70px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #c0c0c0;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 0 #808080;
        padding: 2rem 0;
        border-top: 2px solid #000000;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .profile-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 80px 0;
    }

    .project-card,
    .social-card {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card,
.social-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.4s;
}

.social-card:nth-child(2) {
    animation-delay: 0.1s;
}

.social-card:nth-child(3) {
    animation-delay: 0.2s;
}

.social-card:nth-child(4) {
    animation-delay: 0.3s;
}

.social-card:nth-child(5) {
    animation-delay: 0.4s;
}

.social-card:nth-child(6) {
    animation-delay: 0.5s;
}