/* ==========================================================================
   Base Styles
   ========================================================================== */

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

body {
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8rem 20px 0;
    animation: fade-in 0.4s ease-in;
    overflow-x: hidden;
}


/* ==========================================================================
   Navigation Block
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    padding: 0.7rem 0;
    transition: transform 0.5s ease;
}

@media (min-width: 769px) {
    .navbar--grid-injected {
        background:
            linear-gradient(to bottom, rgba(10, 30, 50, 0.9) 0%, rgba(0, 0, 0, 0.95) 100%),
            linear-gradient(to right, rgba(74, 144, 226, 0.8) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(74, 144, 226, 0.8) 1px, transparent 1px);
        background-size: auto, 15px 15px, 15px 15px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: none;
    }
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.navbar__brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.navbar__center {
    display: flex;
    gap: 1rem;
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.navbar__link--active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.navbar__link--github {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
}

.navbar__options {
    display: flex;
    gap: 0.5rem;
}

.navbar__option {
    padding: 0.4rem;
    border-radius: 4px;
    cursor: pointer;
}

.navbar__option--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ==========================================================================
   Main Content Block
   ========================================================================== */

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   Content Container Block
   ========================================================================== */

.content-container {
    text-align: left;
    max-width: 600px;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.content-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.1), transparent);
    animation: shimmer 3s infinite;
    overflow: hidden;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.heading {
    position: relative;
    z-index: 1;
}

.heading--primary {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    animation: fade-in-up 0.3s ease-out 0.1s both;
}

.heading--secondary {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #94a3b8;
    padding-left: 1rem;
    border-left: 2px solid #374151;
    animation: fade-in-up 0.3s ease-out 0.15s both;
}

.text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: #cbd5e1;
    position: relative;
    z-index: 1;
    animation: fade-in-up 0.3s ease-out 0.25s both;
}

/* Global typography for pages */
h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #94a3b8;
}

p {
    color: #cbd5e1;
    line-height: 1.6;
}

/* Minimal page animations to prevent blinking */
.page-container {
    opacity: 0;
    animation: fade-in 0.3s ease-out forwards;
}

/* ==========================================================================
   Profile Image Block
   ========================================================================== */

.profile-section {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.3s ease-out 0.1s both;
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-image:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.profile-image__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-image__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-image:hover .profile-image__img {
    filter: brightness(1.1) contrast(1.1);
}

/* ==========================================================================
   Skills Block
   ========================================================================== */

.skills {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    animation: fade-in-up 0.3s ease-out 0.2s both;
}

.skills__item {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skills__item:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   Page Container Block
   ========================================================================== */

.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.page-container--align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* Legacy support for existing pages */
.align-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

/* Backward compatibility for old class names */
.container {
    text-align: left;
    max-width: 600px;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.1), transparent);
    animation: shimmer 3s infinite;
    overflow: hidden;
}

.skill {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    color: #e2e8f0;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}

/* ==========================================================================
   Page Router Block
   ========================================================================== */

.page {
    transition: opacity 0.3s ease;
}

.page--loading {
    opacity: 0.7;
}

/* Backward compatibility for JavaScript */
#main-page {
    transition: opacity 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

#main-page.loading {
    opacity: 0.7;
}

/* Common page elements */
.page-divider {
    border: none;
    height: 1px;
    background-color: #374151;
    width: 40px;
    margin: 1.5rem 0 1rem 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .navbar__center {
        gap: 0.5rem;
    }

    .content-wrapper {
        padding: 120px 15px 20px;
    }

    .main-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    .content-container,
    .container {
        padding: 1.5rem;
        width: 90%;
        margin: 0 auto 2rem;
        z-index: 3;
        background: rgba(13, 17, 23, 0.25);
        backdrop-filter: blur(12px);
    }
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */

.navbar__hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 9999;
    position: relative;
}

.navbar__hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.15s ease;
    border-radius: 2px;
}

.navbar__hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.navbar__mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.navbar__mobile.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.navbar__mobile-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar__mobile-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {

    .navbar__center,
    .navbar__right {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .navbar__container {
        justify-content: space-between;
    }

    .content-wrapper {
        padding: 100px 10px 20px;
    }

    .heading--primary {
        font-size: 1.8rem;
    }

    .heading--secondary {
        font-size: 1rem;
        padding: 0;
        border-left: none;
    }

    .text {
        font-size: 1rem;
    }

    .skills {
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .skills__item,
    .skill {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

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

    /* Mobile responsive fixes */
    .page-container {
        padding: 1rem;
        max-width: 100%;
    }


}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    100% {
        transform: translateX(100%);
    }
}



/* Style for links that are not yet active */
.navbar__link--soon,
.navbar__mobile-link.navbar__link--soon {
    color: #b40000 !important; 
}
 