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

body {
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    transition: all 0.3s ease;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.pill {
    width: 50px;
    height: 50px;
    padding: 0;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: none !important;
}

.blue-pill {
    background: linear-gradient(45deg, #2196F3, #1976D2);
}

.red-pill {
    background: linear-gradient(45deg, #f44336, #d32f2f);
}

.pill:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pill.active {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 15px;
}

.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
section {
    margin-bottom: 4rem;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: currentColor;
}

/* Skills Grid */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.project-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-weight: bold;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Contact Section */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-item i {
    font-size: 1.5rem;
}

/* Simple Theme */
body.simple-theme {
    background-color: #ffffff;
    color: #333333;
}

.simple-theme section {
    background-color: #f8f8f8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.simple-theme .skill-item,
.simple-theme .project-card {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.simple-theme .contact-item {
    background-color: #f0f0f0;
    color: #333;
}

.simple-theme .contact-item:hover {
    background-color: #e0e0e0;
}

.simple-theme .project-card {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.simple-theme .project-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.simple-theme .project-link {
    color: #2196F3;
}

/* Matrix Theme */
body.matrix-theme {
    background-color: #000000;
    color: #00ff00;
    overflow-x: hidden;
}

.matrix-theme section {
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
}

.matrix-theme .skill-item,
.matrix-theme .project-card {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.matrix-theme .contact-item {
    background-color: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.matrix-theme .contact-item:hover {
    background-color: rgba(0, 255, 0, 0.2);
}

.matrix-theme h1,
.matrix-theme h2,
.matrix-theme h3 {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.matrix-theme .profile-image {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    border: 2px solid #00ff00;
    border-radius: 15px;
}

.matrix-text {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.matrix-theme .matrix-text {
    display: block;
}

/* Matrix Rain Animation */
@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.matrix-character {
    position: absolute;
    color: #00ff00;
    font-size: 1.2rem;
    animation: matrixRain 3s linear infinite;
    opacity: 0.8;
}

.matrix-theme .project-card {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.matrix-theme .project-card:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

.matrix-theme .project-link {
    color: #00ff00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .theme-toggle {
        right: 1rem;
        top: auto;
        bottom: 2rem;
        flex-direction: row;
        transform: none;
    }

    .pill {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .skill-grid,
    .project-grid,
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .work-role-container {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .work-role-container .work-period {
        margin-left: 0;
        display: block;
        margin-top: 0.25rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-item {
        justify-content: center;
    }

    .hero {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .profile-section {
        margin-bottom: 1rem;
    }

    .quote {
        margin: 4rem 1rem 2rem 1rem;
        padding: 2rem;
    }
}

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

    .profile-image {
        width: 150px;
        height: 150px;
    }

    section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .work-item,
    .skill-item,
    .project-card {
        padding: 1.25rem;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 0.75rem;
    }

    .pill {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .hero {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }

    .profile-section {
        margin-bottom: 0.75rem;
    }
}

/* Ensure content is readable on all devices */
.simple-theme section,
.matrix-theme section {
    max-width: 100%;
    overflow-x: hidden;
}

/* Improve touch targets on mobile */
.contact-item,
.project-card,
.skill-item {
    min-height: 44px;
}

/* Ensure text remains readable */
p, li {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.work-period {
    font-size: 0.9rem;
    opacity: 0.8;
}

.work-role {
    font-weight: bold;
    margin-bottom: 1rem;
    color: inherit;
}

.work-details {
    list-style-type: none;
    padding: 0;
}

.work-details li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.work-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: inherit;
}

/* Simple Theme Work Styles */
.simple-theme .work-item {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.simple-theme .work-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Matrix Theme Work Styles */
.matrix-theme .work-item {
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
}

.matrix-theme .work-item:hover {
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
}

.work-role-container {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.work-role-container:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.work-role {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: inherit;
    display: inline-block;
}

.work-role-container .work-period {
    margin-left: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Matrix Theme Work Role Styles */
.matrix-theme .work-role-container {
    border-bottom-color: rgba(0, 255, 0, 0.2);
}

.content {
    position: relative;
    z-index: 2;
}

/* Quote Section */
.quote {
    margin: 4rem 0 2rem 0;
    padding: 2rem;
    background: none;
    box-shadow: none;
}

.quote h2 {
    text-align: left;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.quote blockquote {
    position: relative;
    padding: 1rem 3rem;
    margin: 0;
    font-style: italic;
    text-align: center;
}

.quote blockquote p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

.quote blockquote footer {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    font-style: normal;
}

.quote blockquote::before,
.quote blockquote::after {
    content: '"';
    position: absolute;
    font-size: 4rem;
    opacity: 0.15;
    font-family: Georgia, serif;
    color: var(--text-color);
}

.quote blockquote::before {
    left: 0;
    top: -1rem;
}

.quote blockquote::after {
    right: 0;
    bottom: -2rem;
} 