@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;   
    display: flex;
    flex-direction: column;
    font-family: 'DM Sans', sans-serif;
}

h5 {
    text-align: center;
    font-size: large;
}

h6 {
    text-align: center;
    font-size: medium;
}

main {
    flex: 1;        
}

.progress-bars {
    margin: 2rem 0;
}

.bar {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, #5f5965, #3066e4);
    transition: width 1s ease;
    border-radius: 5px;
}

nav {
    background: #333;
    padding: 14px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

nav a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    margin: 0 6px;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 22px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

nav a:hover {
    background: rgb(15, 12, 86);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

nav a:active {
    transform: scale(0.95);
    background: #760860;
}

nav a.active {
    background: linear-gradient(45deg, #081967, #1d0639);
    color: #fff;
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.main1 {
    height: 100vh;
    padding: 0;
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    background: linear-gradient(270deg, #7706b0, #4984b2, #021046);
    background-size: 600% 600%;
    animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}

.main1 h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.main1 p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 420px;
    line-height: 1.7;
}

.main-logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 28px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.container {
    padding: 50px 60px;
    background-color: #c3c6c9;
    min-height: calc(100vh - 50px);
}

.container h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.container > p {
    color: #444;
    margin-bottom: 34px;
    font-size: 0.95rem;
}

.container h2 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #222;
    margin: 28px 0 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(0,0,0,0.12);
}

ul.skills-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

ul.skills-list li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
}

.skill-pct {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
}

.profile-links-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.profile-links-list a {
    color: #232222;
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-links-list a:hover {
    text-decoration: underline;
}

.profile-links-list svg {
    flex-shrink: 0;
}


.projects-empty {
    text-align: center;
    margin-top: 80px;
    color: #555;
}

.projects-empty h5 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.projects-empty p {
    font-size: 0.9rem;
    color: #777;
}


button {
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #555;
}

.grid {
    display: flex;
    gap: 20px;
}

.card {
    background: #333;
    padding: 20px;
    border-radius: 10px;
    flex: 1;
    text-align: center;
    color: white;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.carousel-caption h1, .carousel-caption p {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
}

.footer {
    background-color: #333;   
    color: white;             
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin: 0;
}

#page-transition {
    position: fixed;
    inset: 0;
    background: linear-gradient(45deg, #0e207c, #35043e);
    z-index: 9999;
    pointer-events: none;
    transform: translateY(60px);
    opacity: 0;
}

#page-transition.slide-in {
    animation: pt-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

#page-transition.slide-out {
    animation: pt-out 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pt-in {
    from { transform: translateY(60px); opacity: 0; }
    to   { transform: translateY(0px);  opacity: 1; }
}

@keyframes pt-out {
    from { transform: translateY(0px);  opacity: 1; }
    to   { transform: translateY(-60px); opacity: 0; }
}

.project-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    max-width: 420px;
    border: 0.5px solid rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.project-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgb(15, 12, 86);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
}

.project-year {
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.project-desc {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: rgb(15, 12, 86);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.project-link:hover {
    background: rgb(15, 12, 86);
}

.coming-soon {
    margin-top: 28px;
    font-size: 0.88rem;
    color: #888;
    font-style: italic;
    letter-spacing: 0.03em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}


.contact-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.contact-list a {
    color: #0f186b;
    text-decoration: none;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.contact-list a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.contact-list svg {
    flex-shrink: 0;
}

/*Mobile Mode*/
@media (max-width: 768px) {

    nav a {
        margin: 0 2px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }

   
    .main1 h1 {
        font-size: 1.8rem;
    }

    .main1 p {
        font-size: 0.9rem;
        padding: 0 20px;
    }

    .main-logo {
        width: 90px;
        height: 90px;
    }

    .main1 div[style] {
        gap: 14px;
        margin-bottom: 24px !important;
        margin-top: 24px !important;
    }

    .container {
        padding: 30px 20px;
    }

    .container h1 {
        font-size: 1.5rem;
    }

    .profile-links-list a {
        font-size: 1rem;
    }

    .footer {
        font-size: 0.85rem;
        padding: 14px 0;
    }

    
    .projects-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        flex: 0 0 80vw;
        max-width: 80vw;
        scroll-snap-align: start;
    }
}