:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #004a7f;
    --border-color: #e5e7eb;
    --hover-bg: #f8fafc;
    --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    --card-bg: rgba(13, 13, 13, 0.95);
    --card-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-blur: blur(12px);
    --container-width: min(1200px, 95%);
    --container-padding: 2rem;
    --container-padding-tablet: 1.5rem;
    --container-padding-mobile: 1.5rem;
    --section-spacing: 6rem;
    --section-spacing-tablet: 4rem;
    --section-spacing-mobile: 4rem;
    --mobile-nav-height: 60px;
    --mobile-padding: 1rem;
    --mobile-font-scale: 0.9;
    --header-height: 60px;
    --mobile-spacing: 1rem;
}

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

body, html {
    scrollbar-width: none;
    -ms-overflow-style: none;
    min-height: 100%;
    &::-webkit-scrollbar {
        display: none;
    }
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: transparent;
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 2rem;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.nav-item {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: var(--transition);
    
    &::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--accent-color);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }
    
    &:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.section-container,
.about-container,
.contact-container,
.about-intro,
.about-content,
.bento-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.projects-grid {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-bottom: 0;
    box-shadow: var(--glass-shadow);
    margin: 0;
}

.section {
    min-height: 100vh;
    padding: 6rem 0;
    padding-top: calc(6rem + 60px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
    contain: layout paint;
    content-visibility: auto;
}

#home.section {
    padding-top: calc(8rem + 60px);
}

h1, h2 {
    margin-bottom: 2rem;
}

h1.name {
    font-size: 4.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.about-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2)
    );
    border-radius: inherit;
    z-index: 0;
}

.about-container > * {
    position: relative;
    z-index: 1;
}

.about-header {
    margin-top: 1rem;
    text-align: left;
}

.about-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        90deg,
        var(--text-color) 0%,
        var(--accent-color) 50%,
        var(--text-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
    line-height: 1.2;
}

.about-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-meta span {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.95rem;
    backdrop-filter: var(--glass-blur);
    transition: all 0.3s ease;
    color: #ffffff;
}

.about-meta span i {
    font-size: 1rem;
    color: #004a7f;
    transition: all 0.3s ease;
}

.about-meta span:hover {
    background: #004a7f;
}

.about-meta span:hover i {
    color: #ffffff;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 1.5rem;
    margin: 0;
}

.about-cta {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cta-button {
    position: relative;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.cta-button:first-child {
    background: #004a7f;
    color: #ffffff;
    border: 1px solid #004a7f;
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button:first-child:hover {
    background: #005a99;
    border-color: #005a99;
    box-shadow: 0 5px 15px rgba(0, 74, 127, 0.3);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-button::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(3px);
}

.skills-section {
    height: 100%;
}

.skills-section h4 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(
        90deg,
        var(--text-color) 0%,
        var(--accent-color) 50%,
        var(--text-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--text-color);
    min-width: 0;
}

.skill-item i,
.skill-item svg {
    color: var(--accent-color);
    transition: color 0.3s ease;
    width: 1.5rem !important;
    height: 1.5rem !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-item:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 74, 127, 0.3);
}

.skill-item:hover i,
.skill-item:hover svg {
    color: #ffffff;
    filter: brightness(1.2);
}

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card {
    background: transparent;
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.2s ease;
}

.project-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    
    &:hover {
        background: rgba(255, 255, 255, 0.05);
    }
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
}

.project-brief {
    color: rgba(255, 255, 255, 0.6);
    margin: 0.2rem 0;
    font-size: 0.85rem;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: flex-start;
}

.project-tech-stack span {
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-color);
    white-space: nowrap;
    transition: var(--transition);
}

.project-tech-stack span:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.project-preview-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.project-title-area {
    flex: 1;
    min-width: 200px;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0;
}

.project-preview-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-brief {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.expand-btn {
    color: var(--text-color);
    opacity: 0.6;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 2;
}

.expand-btn:hover {
    opacity: 1;
}

.expand-btn:active,
.expand-btn:focus {
    opacity: 0.6;
    outline: none;
    background: transparent !important;
}

.expand-btn:focus-visible {
    outline: none;
    background: transparent !important;
}

.project-card:not(.collapsed) .expand-btn {
    transform: rotate(180deg);
    opacity: 0.6;
}

.project-card:not(.collapsed) .expand-btn:hover {
    opacity: 1;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.project-card:not(.collapsed) .project-details {
    max-height: 300px;
}

.project-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.project-description {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
}

.project-description::-webkit-scrollbar {
    width: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.project-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin: 4px;
}

.project-description::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease;
}

.project-description::-webkit-scrollbar-thumb:hover {
    background: #005a99;
}

@supports (scrollbar-color: auto) {
    .project-description {
        scrollbar-width: thin;
        scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
    }
}

.project-links {
    display: flex;
    flex-direction: column;
    height: fit-content;
    gap: 1rem;
    margin-top: auto;
}

.project-links .project-links {
    display: contents;
}

.project-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-size: 0.9rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link i,
.project-link span {
    transition: color 0.3s ease;
}

.project-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.project-link:hover i,
.project-link:hover span {
    color: #ffffff;
}

.project-category {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-family: inherit;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    padding: 1rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

button:hover {
    background-color: var(--accent-color);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-card {
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    &.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-info p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.email-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.email {
    font-size: 1.2rem;
    color: #004a7f;
}

.copy-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.copy-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.social-link:hover .social-icon {
    fill: var(--bg-color);
}

.location {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-top: 1rem;
    animation: fadeUp 0.8s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.skills-container {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-group h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.skill-tag {
    background: rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
    animation: float 3s infinite;
    animation-delay: calc(var(--delay) * 100ms);
}

.skill-tag:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0;
    margin-top: 1rem;
}

.bento-item {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, rgba(0, 74, 127, 0.1), transparent);
    transform: translateZ(-1px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.bento-item p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-icon {
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-item.large {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.bento-item.large .content {
    flex: 1;
}

.bento-item.large h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.bento-item.large p {
    font-size: 1rem;
    max-width: 560px;
}

.code-block {
    background: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #334155;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #0d0d0d;
}

.gradient-mesh {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 74, 127, 0.3) 0%,
        rgba(0, 74, 127, 0.15) 25%,
        transparent 50%
    );
    transform-style: preserve-3d;
    transform: perspective(1000px) 
               rotateX(var(--rotate-x, 0deg)) 
               rotateY(var(--rotate-y, 0deg));
    transition: transform 0.1s ease;
    pointer-events: none;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

.blueprint-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 74, 127, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 74, 127, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.tagline {
    font-size: 1.5rem;
    margin: 1rem 0;
    opacity: 0.8;
    text-align: center;
    width: 100%;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(
        90deg,
        var(--text-color) 0%,
        var(--accent-color) 50%,
        var(--text-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

@keyframes gridMove {
    0% {
        transform: perspective(1000px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(1000px) rotateX(60deg) translateY(50px);
    }
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.bento-item:nth-child(2) { transition-delay: 0.1s; }
.bento-item:nth-child(3) { transition-delay: 0.2s; }
.bento-item:nth-child(4) { transition-delay: 0.3s; }
.bento-item:nth-child(5) { transition-delay: 0.4s; }

.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    z-index: 1001;
    transition: height 0.1s ease;
    opacity: 0.8;
}

.scroll-progress:hover {
    width: 6px;
    opacity: 1;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
    transform-origin: center;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.gradient-text {
    background: linear-gradient(
        90deg,
        var(--text-color) 0%,
        var(--accent-color) 50%,
        var(--text-color) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 8s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.section-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-transition.visible {
    opacity: 1;
    transform: translateY(0);
}

.bento-item {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(to right, rgba(0, 74, 127, 0.1), transparent);
    transform: translateZ(-1px);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-item:hover::before {
    opacity: 1;
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    height: 100%;
    overflow-y: scroll;
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome/Safari/Opera */
::-webkit-scrollbar {
    display: none;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.project-item {
    position: relative;
    overflow: hidden;
}

.project-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.project-link.github {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.project-link.github:hover {
    background: #004a7f;
}

.project-link.demo {
    background: var(--accent-color);
    color: white;
}

.project-link.demo:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.project-icon {
    width: 18px;
    height: 18px;
}

.project-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1.5rem;
}

.project-description {
    flex: 1;
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-stack span {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.project-item.large .project-preview {
    height: 300px;
    flex: 1;
}

.footer {
    padding: 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.heart {
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    40% { transform: scale(1); }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.about-intro {
    margin-bottom: 3rem;
}

.about-content {
    gap: 2rem;
}

.about-description {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

.about-cta {
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:first-child {
    background: var(--accent-color);
    color: white;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skills-section {
    height: 100%;
}

.skills-section h4 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.background .gradient-mesh {
    background: radial-gradient(circle at top right, #004a7f 0%, transparent 70%),
                radial-gradient(circle at bottom left, #004a7f 0%, transparent 70%);
    opacity: 0.1;
}

.about-intro,
.about-content,
.bento-grid,
.contact-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.section-nav {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-nav-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.section-nav-btn:hover {
    opacity: 1;
}

.section-nav-btn:hover,
.section-nav-btn:focus,
.section-nav-btn:active {
    background: none !important;
    outline: none;
}

.section-nav-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.typescript-icon,
.postgresql-icon,
.nextjs-icon,
.lua-icon,
.rust-icon,
.svelte-icon {
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    flex-shrink: 0;
}

.project-card,
.project-preview,
.project-content,
.project-details {
    border-radius: 0;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-item:hover .project-preview img {
    transform: none;
}

.github-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.github-link i {
    font-size: 1.2rem;
}

.name {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    margin-left: -0.3em;
}

.logo-i {
    display: inline-block;
    vertical-align: middle;
    height: 1.2em;
    width: auto;
    margin-right: -0.3em;
    
    path {
        fill: #000000;
        
        &[style*="fill:var(--accent-color)"] {
            fill: var(--accent-color);
        }
    }
}

.logo-i path {
    fill: #000000;
}

.logo-i path[style*="fill:var(--accent-color)"] {
    fill: var(--accent-color);
}

.gradient-text {
    background: linear-gradient(
        135deg,
        var(--text-color) 0%,
        var(--accent-color) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
}

.name svg {
    color: inherit;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
}

.name > :not(svg) {
    color: transparent;
}

/* Utility Classes */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-gap-2 {
    gap: 2rem;
}

/* Remove unused media queries and consolidate them */
@media (max-width: 1440px) {
    .about-container {
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    :root {
        --container-padding: var(--container-padding-tablet);
        --section-spacing: var(--section-spacing-tablet);
    }

    .about-content,
    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 780px) {
    :root {
        --container-padding: var(--container-padding-mobile);
        --section-spacing: var(--section-spacing-mobile);
    }

    nav {
        padding: 0 var(--mobile-spacing);
    }

    .nav-links {
        gap: 2rem;
    }

    .nav-item {
        font-size: 0.9rem;
    }

    h1.name {
        font-size: 4rem;
        margin-bottom: 1rem;
    }

    .tagline {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .projects-grid {
        border: none;
        background: none;
        box-shadow: none;
    }

    .project-card {
        background: var(--glass-bg);
        margin-bottom: 1rem;
        border: 1px solid var(--glass-border);
    }

    .project-preview {
        padding: 1.25rem;
    }

    .project-preview-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .project-title-area {
        width: 100%;
        min-width: 0;
    }

    .project-tech-stack {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
        margin: 0.5rem 0;
        justify-content: flex-start;
    }

    .project-tech-stack span {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 100px;
    }

    .project-links {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .project-preview {
        padding: 1.25rem;
        display: flex;
        flex-direction: column;
    }

    .project-brief {
        font-size: 0.9rem;
        margin: 0.25rem 0 0.5rem 0;
        opacity: 0.8;
    }

    .skills-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .skill-item {
        padding: 1rem;
        justify-content: center;
    }

    .contact-card {
        padding: 1.5rem;
        margin: 1rem;
    }

    .email-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .project-link,
    .nav-item,
    .skill-item,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.7rem 1rem;
    }

    .project-description {
        -webkit-overflow-scrolling: touch;
        max-height: 150px;
    }

    .about-container {
        padding: 1.5rem;
        border-radius: 12px;
        margin: 1rem;
        gap: 1.5rem;
    }

    .about-header h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .about-meta {
        gap: 0.75rem;
    }

    .about-meta span {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        width: 100%; /* Make meta items full width on mobile */
    }

    .about-text {
        font-size: 1rem;
        padding: 0; /* Remove padding on mobile */
        line-height: 1.6;
    }

    .about-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .project-preview-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        width: 100%;
    }

    .project-title-area {
        width: 100%;
        min-width: 0;
    }

    .project-tech-stack {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.5rem;
    }

    .project-tech-stack span {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .project-links {
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }

    .project-link {
        flex: 1;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        min-height: 36px;
        white-space: nowrap;
    }

    .project-link i {
        margin-right: 0.3rem;
        font-size: 0.8rem;
    }

    .project-preview {
        padding: 1rem;
    }

    .project-brief {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .github-cta {
        padding: 0 1.25rem; /* Match project card padding */
        margin-top: 1.5rem;
    }

    .github-link {
        width: 100%; /* Full width on mobile */
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: 
            "stat1 stat3"
            "stat2 stat2";
        gap: 2rem;
        justify-items: center;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-stats .stat:nth-child(1) {
        grid-area: stat1;
    }

    .hero-stats .stat:nth-child(2) {
        grid-area: stat2;
        grid-column: 1 / -1; /* Make stat 2 span full width */
    }

    .hero-stats .stat:nth-child(3) {
        grid-area: stat3;
    }

    .stat {
        width: 100%;
        max-width: 160px;
        text-align: center;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    h1.name {
        font-size: 3.5rem;
    }

    .skills-list {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .about-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .about-header h3 {
        font-size: 1.5rem;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
    }

    .project-tech-stack {
        flex-wrap: wrap;
    }

    .github-cta {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    .contact-card {
        padding: 1rem;
        margin: 0;
      }
}

@media (max-height: 480px) and (orientation: landscape) {
    .section {
        min-height: auto;
        padding: 3rem 0;
    }
}

@supports (-webkit-touch-callout: none) {
    body {
        overscroll-behavior-y: none;
    }
}

/* Additional adjustments for very small screens */
@media (max-width: 380px) {
    .project-links {
        flex-direction: column;
        gap: 0.4rem;
    }

    .project-link {
        width: 100%;
        padding: 0.5rem;
    }

    .project-tech-stack {
        gap: 0.3rem;
    }

    .project-tech-stack span {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    .email {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .stat {
        max-width: 140px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}