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

/* Search Bar Styles */
.search-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1300 !important;
    width: 50px;
    height: 50px;
    max-width: calc(100vw - 40px);
    margin-bottom: 18px;
    transition: width 0.3s ease, height 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.search-bar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 50%;
    position: relative;
    transition: border-radius 0.3s, width 0.3s, height 0.3s;
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

/* Collapsed: only show toggle button, hide input and clear */
.search-input,
.search-clear {
    display: none;
}
.search-bar .search-icon {
    display: none;
}
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 2;
}

/* Expanded: show input, hide toggle, make bar pill-shaped */
.search-container.expanded {
    width: 300px;
    height: 50px;
}
.search-container.expanded .search-bar {
    border-radius: 25px;
}
.search-container.expanded .search-input {
    display: block;
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-family: 'Comic Neue', cursive;
    outline: none;
    padding: 0 10px;
    opacity: 1;
    width: auto;
    transition: all 0.3s ease;
}
.search-container.expanded .search-clear {
    display: block;
}
.search-container.expanded .search-toggle {
    display: none;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-radius: 28px;
    transform: rotate(1deg);
    z-index: -1;
}

.search-bar:focus-within {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

.search-icon {
    color: #fff;
    font-size: 1.1rem;
    margin-right: 12px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-container.expanded .search-icon {
    opacity: 1;
}

.search-input::placeholder {
    color: #888;
}

.search-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 3px solid #fff;
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
    margin-top: 5px;
}

.search-results::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-top: none;
    border-radius: 0 0 18px 18px;
    transform: rotate(1deg);
    z-index: -1;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #333;
    transform: translateX(5px);
}

.search-result-item i {
    color: #fff;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.search-result-text {
    color: #fff;
    font-size: 0.9rem;
    flex: 1;
}

.search-result-category {
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
    font-style: italic;
}

body {
    font-family: 'Comic Neue', cursive;
    background: #000000;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

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

/* Hand-drawn border utility */
.hand-drawn-border {
    border: 3px solid #000;
    border-radius: 15px;
    position: relative;
    background: #fff;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid #000;
    border-radius: 20px;
    z-index: -1;
    transform: rotate(1deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000;
    z-index: 1;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Avatar Styles */
.avatar-container {
    margin-bottom: 2rem;
}

.avatar {
    width: 150px;
    height: 150px;
    background: #000;
    border-radius: 50%;
    position: relative;
    margin: 0 auto;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.avatar-face {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.eyes {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.eye {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    animation: blink 3s infinite;
}

.eye::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    top: 6px;
    left: 6px;
    animation: look 4s ease-in-out infinite;
}

.mouth {
    width: 30px;
    height: 15px;
    border: 3px solid #fff;
    border-top: none;
    border-radius: 0 0 30px 30px;
    animation: smile 2s ease-in-out infinite;
}

/* Hero Content */
.hero-content {
    max-width: 600px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    position: relative;
    animation: slideInDown 1s ease-out;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #cccccc;
    animation: slideInUp 1s ease-out 0.3s both;
}

.intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #aaaaaa;
    animation: slideInUp 1s ease-out 0.6s both;
    margin-bottom: 0;
}

.actual-name {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    margin-top: 0.2em;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Section Styles */
section {
    padding: 60px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #000;
    border-radius: 2px;
}

/* About Me Section */
.about-me {
    background: #000000;
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #cccccc;
    animation: fadeInUp 0.8s ease-out;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
.skills {
    background: #000000;
    padding-top: 60px;
}

.skills-progress {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-progress-item {
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.skill-progress-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-radius: 18px;
    transform: rotate(1deg);
    z-index: -1;
}

.skill-progress-item:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
}

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

.skill-info i {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 1rem;
}

.skill-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 1;
}

.skill-percentage {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    min-width: 50px;
    text-align: right;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #333;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fff, #ccc);
    border-radius: 6px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill-badge {
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-radius: 18px;
    transform: rotate(1deg);
    z-index: -1;
}

.skill-badge:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.skill-badge i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-badge span {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.project-card {
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    color: #fff;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-radius: 18px;
    transform: rotate(1deg);
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #fff;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-placeholder {
    font-size: 4rem;
    opacity: 0.7;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #000;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Portfolio Section */
.portfolio {
    background: #000000;
    padding-top: 60px;
}

.portfolio-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-link-container {
    margin-bottom: 2rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    color: #000;
    padding: 1.5rem 3rem;
    border: 3px solid #000;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #000;
    border-radius: 18px;
    transform: rotate(1deg);
    z-index: -1;
}

.portfolio-link:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.4);
}

.portfolio-link i {
    font-size: 1.5rem;
}

.portfolio-description {
    color: #aaa;
    font-size: 1.1rem;
    line-height: 1.8;
}

.portfolio-description p {
    margin-bottom: 0.5rem;
}

/* Get in Touch Section */
.get-in-touch {
    background: #000000;
    padding-top: 60px;
}

.discord-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.discord-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    background: #23272a;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border: 2.5px solid #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    min-height: 48px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.discord-link::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-radius: 12px;
    transform: rotate(1deg);
    z-index: -1;
}

.discord-link:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.25);
    background: #36393f;
}

.discord-link i {
    font-size: 1.7rem;
    color: #b9bbbe;
    margin-right: 0.5rem;
}

.discord-link span {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: #fff;
    color: #000;
    text-align: center;
    padding: 3rem 0;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-quote {
    font-size: 1.2rem;
    font-weight: 700;
    font-style: italic;
    opacity: 0.8;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1300 !important;
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: rotate(1deg);
    z-index: -1;
}

.theme-toggle i {
    font-size: 2rem;
    color: #fff;
    transition: all 0.3s ease;
}

/* Dark Mode Styles (Light Mode) */
body.light-mode {
    background: #ffffff;
    color: #000000;
}

body.light-mode .hero {
    background: linear-gradient(45deg, #f8f8f8 25%, transparent 25%), 
                linear-gradient(-45deg, #f8f8f8 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f8f8f8 75%), 
                linear-gradient(-45deg, transparent 75%, #f8f8f8 75%);
}

body.light-mode .hero::before {
    background: rgba(255, 255, 255, 0.9);
}

body.light-mode .about-me {
    background: #f8f8f8;
}

body.light-mode .about-text p {
    color: #333333;
}

body.light-mode .skills,
body.light-mode .social,
body.light-mode .contact {
    background: #f8f8f8;
}

body.light-mode .portfolio {
    background: #f8f8f8;
}

body.light-mode .get-in-touch {
    background: #f8f8f8;
}

body.light-mode .search-bar {
    background: #fff;
    border-color: #000;
}

body.light-mode .search-bar::before {
    border-color: #000;
}

body.light-mode .search-icon {
    color: #000;
}

body.light-mode .search-input {
    color: #000;
}

body.light-mode .search-input::placeholder {
    color: #666;
}

body.light-mode .search-toggle {
    color: #000;
}

body.light-mode .search-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-clear {
    color: #000;
}

body.light-mode .search-clear:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .search-results {
    background: #fff;
    border-color: #000;
}

body.light-mode .search-results::before {
    border-color: #000;
}

body.light-mode .search-result-item {
    border-bottom-color: #e0e0e0;
}

body.light-mode .search-result-item:hover {
    background: #f0f0f0;
}

body.light-mode .search-result-item i {
    color: #000;
}

body.light-mode .search-result-text {
    color: #000;
}

body.light-mode .search-result-category {
    color: #666;
}

body.light-mode .no-results {
    color: #666;
}

body.light-mode .skill-progress-item {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.light-mode .skill-progress-item::before {
    border-color: #000;
}

body.light-mode .skill-info i,
body.light-mode .skill-name,
body.light-mode .skill-percentage {
    color: #000;
}

body.light-mode .progress-bar {
    background: #e0e0e0;
}

body.light-mode .progress-fill {
    background: linear-gradient(90deg, #000, #333);
}

body.light-mode .skill-badge,
body.light-mode .project-card,
body.light-mode .social-link,
body.light-mode .contact-form {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.light-mode .portfolio-link {
    background: #000;
    color: #fff;
    border-color: #000;
}

body.light-mode .discord-link {
    border-color: #000;
}

body.light-mode .portfolio-description {
    color: #333;
}

body.light-mode .skill-badge::before,
body.light-mode .project-card::before,
body.light-mode .social-link::before,
body.light-mode .contact-form::before,
body.light-mode .portfolio-link::before,
body.light-mode .discord-link::before {
    border-color: #000;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.light-mode .submit-btn {
    background: #000;
    color: #fff;
}

body.light-mode .submit-btn::before {
    border-color: #000;
}

body.light-mode .theme-toggle {
    background: #fff;
    border-color: #000;
}

body.light-mode .theme-toggle::before {
    border-color: #000;
}

body.light-mode .theme-toggle i {
    color: #000;
}

body.light-mode .footer {
    background: #000;
    color: #fff;
}

body.light-mode .actual-name {
    color: #333;
}

body.light-mode .role-static {
    color: #000;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

@keyframes look {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(2px, -2px);
    }
    50% {
        transform: translate(-2px, 2px);
    }
    75% {
        transform: translate(2px, 2px);
    }
}

@keyframes smile {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.1);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes searchHighlight {
    0% {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        background: rgba(255, 255, 255, 0.6);
        transform: scale(1.05);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        top: 12px;
        right: 12px;
        width: 45px;
        height: 45px;
    }
    .theme-toggle {
        top: 65px;
        right: 12px;
        width: 45px;
        height: 45px;
    }
    
    .search-container.expanded {
        width: 220px;
        height: 45px;
    }
    
    .search-bar {
        padding: 10px 15px;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .skills-progress {
        gap: 1.5rem;
    }
    
    .skill-progress-item {
        padding: 1.2rem;
    }
    
    .skill-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skill-percentage {
        align-self: flex-end;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .search-container {
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
    }
    .theme-toggle {
        top: 52px;
        right: 6px;
        width: 40px;
        height: 40px;
    }
    
    .search-container.expanded {
        width: 95vw;
        min-width: 0;
        height: 40px;
    }
    
    .search-bar {
        padding: 8px 12px;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .search-results {
        max-height: 250px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
}

/* Scroll Down Popup */
.scroll-popup {
    position: fixed !important;
    top: 3cm !important;
    right: 20px !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 2000 !important;
}

.scroll-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.scroll-popup.hide {
    opacity: 0;
    transform: translateX(-100%);
}

.popup-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.popup-content i {
    font-size: 1.2rem;
    animation: bounce 1s infinite;
}

.popup-content span {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Dark mode styles for popup */
body.dark-mode .scroll-popup {
    background: #000;
    color: #fff;
    box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.3);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.3);
}

body.light-mode .scroll-popup {
    background: #000;
    color: #fff;
    box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.3);
}

.fee-badge {
    display: inline-block;
    background: #fff;
    color: #000;
    font-weight: 700;
    font-size: 2rem;
    border-radius: 8px;
    padding: 0.4em 1.5em;
    margin: 1em 0 1em 0;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.15);
    letter-spacing: 1px;
    border: 2px solid #000;
}

body.light-mode .fee-badge {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 2px 2px 0 rgba(255,255,255,0.15);
}

.rotating-role-line {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.5em 0 0.5em 0;
    color: #fff;
    letter-spacing: 1px;
    min-height: 2.5rem;
}

.role-static {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
}

body.light-mode .role-static {
    color: #000;
}

.role-cursor-static {
    color: #fff;
    font-weight: 700;
    font-size: 2rem;
    margin-left: 2px;
}

body.light-mode .role-cursor-static {
    color: #000;
}

.animated-role {
    color: #ffd700 !important;
    font-weight: 700;
    font-size: 2rem;
    margin-left: 8px;
}

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

/* Additional Animations for JavaScript */
@keyframes skillBounce {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(-2deg); 
    }
    75% { 
        transform: translateY(-5px) rotate(2deg); 
    }
}

@keyframes avatarShake {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(-10deg); 
    }
    75% { 
        transform: rotate(10deg); 
    }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

.portfolio-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.portfolio-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #000;
    padding: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 3px solid #000;
    position: relative;
    overflow: hidden;
}

.portfolio-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #000;
    border-radius: 18px;
    transform: rotate(1deg);
    z-index: -1;
}

.portfolio-button:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
    background: #000;
    color: #fff;
}

.portfolio-button i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.portfolio-button span {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.light-mode .portfolio-button {
    background: #000;
    color: #fff;
    border: 3px solid #fff;
}

body.light-mode .portfolio-button::before {
    border: 2px solid #fff;
}

body.light-mode .portfolio-button:hover {
    background: #fff;
    color: #000;
    box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.3);
}

html {
    scroll-padding-top: 80px;
}

.main-header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1200;
    background: #000;
    border-bottom: 3px solid #fff;
    box-shadow: none;
}
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 0 2rem;
    background: #000;
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    height: 48px;
}
.nav-link {
    color: #fff;
    font-family: 'Comic Neue', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.7rem 2.2rem;
    border-radius: 12px;
    border: 2px solid #fff;
    background: #1a1a1a;
    box-shadow: none;
    transition: all 0.2s;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-link:hover {
    background: #fff;
    color: #000;
    border-color: #000;
    box-shadow: none;
    transform: translateY(-2px) scale(1.05);
}
.search-container {
    position: static !important;
    margin: 0 !important;
    height: 48px;
    display: flex;
    align-items: center;
    background: none;
    border: none;
}
.search-bar {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 2px solid #fff;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    overflow: hidden;
    transition: border-radius 0.3s, width 0.3s;
    box-shadow: none;
}
.search-container.expanded .search-bar {
    border-radius: 12px;
    width: 260px;
}
.search-toggle i, .theme-toggle i {
    font-size: 1.7rem;
}
.search-input, .search-clear { display: none; }
.search-container.expanded .search-input {
    display: block;
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0 10px;
    height: 100%;
}
.search-container.expanded .search-clear { display: block; }
.search-container.expanded .search-toggle { display: none; }
.theme-toggle {
    position: static !important;
    margin: 0 !important;
    z-index: auto !important;
    width: 48px;
    height: 48px;
    background: #1a1a1a;
    border: 2px solid #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;
}
@media (max-width: 900px) {
    .main-nav { padding: 0 0.5rem; }
    .nav-link { padding: 0.7rem 1rem; font-size: 1rem; }
    .search-container.expanded .search-bar { width: 180px; }
}
@media (max-width: 600px) {
    .main-header { border-bottom-width: 2px; }
    .main-nav { min-height: 48px; }
    .nav-link, .nav-actions, .search-bar, .theme-toggle, .search-container { height: 38px; }
    .nav-link { padding: 0.4rem 0.7rem; font-size: 0.95rem; border-radius: 8px; }
    .search-bar, .theme-toggle { border-radius: 8px; }
    .search-toggle i, .theme-toggle i { font-size: 1.2rem; }
    .search-container.expanded .search-bar { width: 110px; }
    .nav-links { gap: 0.5rem; }
    .nav-actions { gap: 0.3rem; }
    .scroll-popup {
        top: 2cm !important;
        right: 8px !important;
    }
} 