/* Mac OS 9 Classic Color Palette */
:root {
    --mac-beige: #EDE8DC;
    --mac-light-gray: #D9D9D9;
    --mac-medium-gray: #ABABAB;
    --mac-dark-gray: #6D6D6D;
    --mac-darker-gray: #3C3C3C;
    --mac-black: #000000;
    --mac-white: #FFFFFF;
    --mac-blue: #0000FF;
    --mac-light-blue: #5C5CFF;
    --mac-yellow: #FFFF00;
    --mac-green: #00FF00;
    --mac-red: #FF0000;
    --mac-purple: #9900FF;
    --mac-window-gray: #CCCCCC;
    --mac-shadow: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Chicago", "Charcoal", "Geneva", "Helvetica", sans-serif;
    background: var(--mac-beige);
    color: var(--mac-black);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Mac Menu Bar */
.mac-menubar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: var(--mac-white);
    border-bottom: 2px solid var(--mac-black);
    box-shadow: 0 2px 4px var(--mac-shadow);
    z-index: 2000;
    display: flex;
    align-items: center;
}

.mac-menu-container {
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.mac-logo {
    font-size: 18px;
    color: var(--mac-black);
}

.mac-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    flex: 1;
}

.menu-item {
    color: var(--mac-black);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    padding: 2px 8px;
    transition: all 0.2s;
}

.menu-item:hover {
    background: var(--mac-black);
    color: var(--mac-white);
}

.mac-time {
    font-size: 12px;
    font-weight: bold;
    color: var(--mac-black);
}

/* Desktop Background */
.mac-desktop {
    min-height: 100vh;
    padding: 50px 20px 20px;
    background: var(--mac-beige);
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(0,0,0,0.02) 1px,
            rgba(0,0,0,0.02) 2px
        );
}

/* Mac Window Styling */
.mac-window {
    background: var(--mac-window-gray);
    border: 2px solid var(--mac-black);
    box-shadow: 
        4px 4px 0 rgba(0,0,0,0.2),
        inset 1px 1px 0 var(--mac-white);
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.window-titlebar {
    background: var(--mac-white);
    border-bottom: 2px solid var(--mac-black);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 4px;
}

.window-close,
.window-minimize,
.window-maximize {
    width: 14px;
    height: 14px;
    border: 2px solid var(--mac-black);
    background: var(--mac-white);
    cursor: pointer;
}

.window-close {
    background: var(--mac-light-gray);
}

.window-close:hover {
    background: var(--mac-black);
}

.window-title {
    flex: 1;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    color: var(--mac-black);
}

.window-stripes {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        var(--mac-black),
        var(--mac-black) 2px,
        transparent 2px,
        transparent 4px
    );
}

.window-content {
    padding: 30px;
    background: var(--mac-white);
    min-height: 200px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: bold;
    color: var(--mac-black);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--mac-black);
}

.section-title i {
    color: var(--mac-blue);
}

/* Hero Section */
.hero-window {
    margin-top: 20px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image-container {
    width: 220px;
    height: 220px;
    border: 4px solid var(--mac-black);
    box-shadow: 4px 4px 0 var(--mac-shadow);
    background: var(--mac-white);
    padding: 8px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid var(--mac-medium-gray);
}

.hero-text {
    padding-right: 20px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--mac-blue);
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: var(--mac-darker-gray);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Mac Buttons */
.mac-button {
    padding: 10px 20px;
    border: 2px solid var(--mac-black);
    background: var(--mac-white);
    color: var(--mac-black);
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--mac-shadow);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mac-button:hover {
    background: var(--mac-light-gray);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--mac-shadow);
}

.mac-button:active {
    background: var(--mac-black);
    color: var(--mac-white);
}

.mac-button.primary {
    background: var(--mac-blue);
    color: var(--mac-white);
}

.mac-button.primary:hover {
    background: var(--mac-light-blue);
}

.mac-button.secondary {
    background: var(--mac-light-gray);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-main h2 {
    margin-bottom: 20px;
}

.about-main p {
    margin-bottom: 20px;
    text-align: justify;
}

.info-box {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 20px;
    margin: 25px 0;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mac-black);
}

.info-box h3 i {
    color: var(--mac-blue);
}

.info-item {
    line-height: 1.8;
}

.info-item strong {
    color: var(--mac-blue);
}

.highlight {
    color: var(--mac-blue);
    font-weight: bold;
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    font-size: 0.9rem;
}

.cert-item.completed i {
    color: var(--mac-green);
}

.cert-item.in-progress i {
    color: var(--mac-yellow);
}

.cert-item.planned i {
    color: var(--mac-medium-gray);
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card,
.stats-card,
.interests-card {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 20px;
}

.contact-card h3,
.stats-card h3,
.interests-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mac-black);
    font-size: 1.1rem;
}

.contact-card h3 i,
.stats-card h3 i,
.interests-card h3 i {
    color: var(--mac-blue);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--mac-blue);
    width: 20px;
}

.contact-item a {
    color: var(--mac-black);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--mac-medium-gray);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: bold;
}

.stat-value {
    color: var(--mac-blue);
    font-weight: bold;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    padding: 6px 12px;
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    font-size: 0.85rem;
    font-weight: bold;
}

/* Experience Section */
.experience-item {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 25px;
    margin-bottom: 25px;
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--mac-black);
}

.exp-header h3 {
    color: var(--mac-blue);
    margin-bottom: 5px;
}

.exp-header h4 {
    color: var(--mac-darker-gray);
    font-size: 1.1rem;
}

.exp-date {
    background: var(--mac-white);
    padding: 6px 12px;
    border: 2px solid var(--mac-black);
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.exp-summary {
    margin-bottom: 20px;
    font-weight: bold;
}

.responsibilities h5,
.technologies-used h5 {
    margin: 20px 0 10px;
    color: var(--mac-blue);
    font-size: 1.1rem;
}

.responsibilities ul {
    margin-left: 20px;
}

.responsibilities li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.responsibilities li strong {
    color: var(--mac-blue);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    font-size: 0.85rem;
    font-weight: bold;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.skill-category {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 20px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mac-black);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--mac-blue);
}

.category-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.95rem;
}

.skill-bar {
    height: 20px;
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    position: relative;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--mac-blue);
    transition: width 1s ease;
    position: relative;
}

.skill-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
}

/* Projects Section */
.project-showcase {
    max-width: 900px;
}

.project-card {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 30px;
    margin-bottom: 25px;
}

.project-card.featured {
    border: 3px solid var(--mac-blue);
}

.project-icon {
    width: 80px;
    height: 80px;
    background: var(--mac-blue);
    border: 2px solid var(--mac-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-icon i {
    font-size: 2.5rem;
    color: var(--mac-white);
}

.project-content h3 {
    color: var(--mac-blue);
    margin-bottom: 15px;
    font-size: 1.75rem;
}

.project-description {
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-details,
.project-outcomes {
    margin: 25px 0;
}

.project-details h4,
.project-outcomes h4,
.project-tech h4 {
    color: var(--mac-blue);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.project-details ul,
.project-outcomes ul {
    margin-left: 20px;
}

.project-details li,
.project-outcomes li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.project-details li strong {
    color: var(--mac-blue);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.tech-badge {
    padding: 8px 15px;
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    font-weight: bold;
    font-size: 0.9rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: var(--mac-blue);
    color: var(--mac-white);
    border: 2px solid var(--mac-black);
    font-weight: bold;
    text-decoration: none;
    box-shadow: 2px 2px 0 var(--mac-shadow);
    transition: all 0.2s;
}

.project-link:hover {
    background: var(--mac-light-blue);
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--mac-shadow);
}

.future-projects {
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    padding: 20px;
}

.future-projects h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.future-projects h3 i {
    color: var(--mac-yellow);
}

/* Contact Section */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.contact-text p {
    font-size: 1.05rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.contact-box {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--mac-black);
    transition: all 0.2s;
}

.contact-box:hover {
    background: var(--mac-white);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--mac-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--mac-blue);
    border: 2px solid var(--mac-black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--mac-white);
}

.contact-info h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.contact-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mac-darker-gray);
}

.availability-card {
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    padding: 25px;
}

.availability-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mac-black);
}

.availability-card h3 i {
    color: var(--mac-blue);
}

.availability-card ul {
    margin: 15px 0 15px 20px;
}

.availability-card li {
    margin-bottom: 8px;
}

.cta-box {
    background: var(--mac-white);
    border: 2px solid var(--mac-black);
    padding: 20px;
    margin-top: 20px;
}

.cta-box h4 {
    color: var(--mac-blue);
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 15px;
}

/* Footer */
.mac-footer {
    background: var(--mac-white);
    border-top: 2px solid var(--mac-black);
    padding: 20px;
    text-align: center;
}

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

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    width: 35px;
    height: 35px;
    background: var(--mac-light-gray);
    border: 2px solid var(--mac-black);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mac-black);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-links a:hover {
    background: var(--mac-blue);
    color: var(--mac-white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .mac-menu {
        display: none;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-container {
        margin: 0 auto;
    }

    .hero-text {
        padding-right: 0;
    }

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

    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .window-content {
        padding: 20px;
    }
}