* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    background-color: #010409;
    color: #f0f6fc;
    line-height: 1.5;
    font-size: 0.875rem;
    margin: 0;
    padding: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border: 2px solid #30363d;
    border-radius: 0.75rem;
    animation: bodyEnter 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform: translateY(0.9375rem);
    will-change: transform, opacity;
}

@keyframes bodyEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    padding: 1.25rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.contact-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 28.125rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    margin: auto;
    min-width: 17.5rem;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: #8d96a0;
    font-size: 1.25rem;
    cursor: pointer;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f6fc;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.375rem;
}

.modal-subtitle {
    color: #8d96a0;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

.recommended-section {
    margin-bottom: 1.25rem;
}

.recommended-label {
    color: #f0f6fc;
    font-weight: 600;
    margin-bottom: 0.625rem;
    display: block;
    font-size: 0.875rem;
}

.contact-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #f0f6fc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    will-change: transform;
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-0.0625rem);
}

.contact-btn-icon {
    width: 1rem;
    height: 1rem;
    filter: brightness(0) saturate(100%) invert(94%) sepia(6%) saturate(201%) hue-rotate(203deg) brightness(103%) contrast(96%);
}

.other-section {
    border-top: 1px solid #21262d;
    padding-top: 1.25rem;
}

.other-label {
    color: #8d96a0;
    font-weight: 500;
    margin-bottom: 0.625rem;
    display: block;
    font-size: 0.875rem;
}

.other-contacts {
    display: grid;
    gap: 0.5rem;
}

.other-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    color: #8d96a0;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    will-change: transform;
}

.other-contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f0f6fc;
}

.other-contact-btn-icon {
    width: 0.875rem;
    height: 0.875rem;
    filter: brightness(0) saturate(100%) invert(55%) sepia(14%) saturate(338%) hue-rotate(203deg) brightness(95%) contrast(94%);
}

.other-contact-btn:hover .other-contact-btn-icon {
    filter: brightness(0) saturate(100%) invert(94%) sepia(6%) saturate(201%) hue-rotate(203deg) brightness(103%) contrast(96%);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    background: rgba(1, 4, 9, 0.92);
    backdrop-filter: blur(0.50rem);
    -webkit-backdrop-filter: blur(0.50rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.625rem 1.5rem;
    position: sticky;
    top: 1rem;
    z-index: 100;
    width: calc(100% - 1rem);
    max-width: 75rem;
    margin: 0 auto 1.25rem auto;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(1, 4, 9, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 75rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.25rem;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.0625rem;
}

.profile-name {
    color: #f0f6fc;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1;
}

.profile-subtitle {
    color: #8d96a0;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1;
}

.status-indicator {
    display: inline-flex;
    gap: 0.125rem;
    align-items: center;
}

.status-dot {
    width: 0.1875rem;
    height: 0.1875rem;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dots 1.5s infinite ease-in-out;
    will-change: opacity, transform;
}

.status-dot:nth-child(1) { animation-delay: 0s; }
.status-dot:nth-child(2) { animation-delay: 0.2s; }
.status-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dots {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.contact-me {
    background: rgba(255, 255, 255, 0.1);
    color: #f0f6fc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.375rem 1rem;
    border-radius: 1.5625rem;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    transition: all 0.3s ease;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    gap: 0.375rem;
    will-change: transform;
}

.contact-me:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-0.0625rem);
}

.main {
    padding: 1.25rem 0.5rem;
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1rem;
}

.projects-section {
    grid-column: 1 / -1;
}

.hero {
    margin-bottom: 1rem;
    text-align: left;
}

.hero h1 {
    font-size: 1.75rem;
    font-weight: 400;
    color: #f0f6fc;
    margin-bottom: 0.75rem;
    min-height: 2.25rem;
}

.hero .name {
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.hero .name.sabareesh {
    color: #58a6ff;
}

.hero .name.frozen {
    color: #000;
    background-color: #c5c5c5;
    padding: 0 0.25rem;
}

.name-letter {
    display: inline-block;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.name-letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .subtitle {
    font-size: 1.125rem;
    color: #8d96a0;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.hero .description {
    color: #e6edf3;
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 43.75rem;
    margin: 0 0 1rem 0;
}

.hero .description strong {
    color: #58a6ff;
}

.badges {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.badge {
    background: #0969da;
    color: #fff;
    padding: 0.125rem 0.375rem;
    border-radius: 2em;
    font-size: 0.6875rem;
    font-weight: 500;
}

.badge.available {
    background: #1a7f37;
}

.section, .contact-section {
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid #21262d;
    border-radius: 0.75rem;
    padding: 1.125rem;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.section {
    height: auto;
    min-height: 12.5rem;
}

.section:hover, .contact-section:hover {
    border-color: #58a6ff;
    background: rgba(13, 17, 23, 0.9);
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.75rem 2rem rgba(88, 166, 255, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #21262d;
    flex-shrink: 0;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-right: 0.5rem;
}

.section-count {
    background: #21262d;
    color: #8d96a0;
    padding: 0 0.375rem;
    border-radius: 2em;
    font-size: 0.6875rem;
    line-height: 1rem;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 0.75rem;
}

.repo-card {
    background: none;
    border: 1px solid #21262d;
    border-radius: 0.375rem;
    padding: 0.75rem;
    transition: all 0.15s ease;
    will-change: transform;
}

.repo-card:hover {
    border-color: #30363d;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 2rem rgba(88, 166, 255, 0.1);
}

.repo-name {
    color: #58a6ff;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.1875rem;
    display: inline-block;
}

.repo-name:hover {
    text-decoration: underline;
}

.repo-description {
    color: #8d96a0;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    line-height: 1.25;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    color: #8d96a0;
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.1875rem;
}

.language-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}

.language-dot.html { background: #e34c26; }
.language-dot.css { background: #1572b6; }
.language-dot.js { background: #f1e05a; }

.repo-links {
    margin-top: 0.375rem;
    display: flex;
    gap: 0.625rem;
}

.repo-link {
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.6875rem;
}

.repo-link:hover {
    text-decoration: underline;
}

.skills-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.skill-category h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.skill-tag {
    background: #21262d;
    color: #e6edf3;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
    cursor: pointer;
}

.skill-tag:hover {
    background: #30363d;
    border-color: #58a6ff;
}

.goals-list {
    list-style: none;
    flex: 1;
}

.goal-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #21262d;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.goal-item:last-child {
    border-bottom: none;
}

.goal-emoji {
    font-size: 0.875rem;
    margin-top: 0.0625rem;
}

.goal-text {
    font-size: 0.8125rem;
    color: #e6edf3;
    line-height: 1.4;
}

.contact-section {
    text-align: center;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-bottom: 0.75rem;
}

.contact-description {
    color: #8d96a0;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    max-width: 31.25rem;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.social-icons li {
    margin: 0;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    text-decoration: none;
    will-change: transform;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-0.125rem);
}

.social-icon {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(94%) sepia(6%) saturate(201%) hue-rotate(203deg) brightness(103%) contrast(96%);
    transition: filter 0.3s ease;
}

.social-icons a:hover .social-icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(76%) saturate(4681%) hue-rotate(205deg) brightness(99%) contrast(101%);
}

.footer {
    margin-top: auto;
    padding: 1.25rem 0.5rem;
    text-align: center;
    border-top: 1px solid #21262d;
}

.footer-text {
    color: #8d96a0;
    font-size: 0.6875rem;
}

.resume-link {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
}

.resume-link:hover {
    text-decoration: underline;
}

.typewriter-cursor {
    opacity: 1;
    animation: blink 1s infinite;
    color: inherit;
    font-weight: bold;
    will-change: opacity;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.fade-in {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .sections-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        border-width: 1px;
        border-radius: 0.5rem;
    }

    .header {
        top: 0.5rem;
        width: calc(100% - 1rem);
        padding: 0.5rem 1.25rem;
        border-radius: 0.75rem;
        margin-bottom: 1rem;
    }

    .avatar {
        width: 1.5rem;
        height: 1.5rem;
    }

    .profile-name { font-size: 0.8125rem; }
    .profile-subtitle { font-size: 0.6875rem; }

    .contact-me {
        padding: 0.3125rem 0.75rem;
        font-size: 0.75rem;
        height: 1.75rem;
    }

    .main {
        padding: 1rem 0.25rem;
        gap: 1rem;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero h1 { font-size: 1.375rem; }
    .hero .subtitle { font-size: 1rem; }
    .hero .description { font-size: 0.875rem; }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.25rem;
    }

    .social-icons a {
        width: 1.75rem;
        height: 1.75rem;
    }

    .social-icon {
        width: 0.875rem;
        height: 0.875rem;
    }
}

@media (max-width: 640px) {
    .hero h1 { font-size: 1.25rem; }
    .section { padding: 1rem; }
}

@media (max-width: 480px) {
    .main { padding: 0.9375rem; }
    .hero h1 { font-size: 1.125rem; }
    .hero .subtitle { font-size: 0.9375rem; }
    .hero .description { font-size: 0.8125rem; }
    .section { padding: 0.75rem; }
    .modal-content { padding: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


