
@font-face {
    font-family: 'handwritten';
    src: url('fonts/handwritten.ttf');
    font-weight: normal;
}

@font-face {
    font-family: 'companies';
    src: url('fonts/companies.otf');
}

.pfp-card{
    width: 50%;
}

.skill-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
    gap:2rem;
    align-items: center;
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
    justify-items: center;
}

.skill-icon{
    width:40px;
    height:40px;
    transition: transform 0.15s;
}

.skill-icon:hover {
    cursor:pointer;
    transform: scale(1.2);
}

body {
    font-family: 'handwritten';
    text-align: center;
    font-size: large;
}

h1 {
    font-size: 2em;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}


.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpSection 1s ease forwards;
    transition: box-shadow 0.25s, transform 0.25s;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 700px;
    color: #222;
}

.fade-in-section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    transform: translateY(-6px) scale(1.05);
}

.fade-in-section:nth-of-type(1) { animation-delay: 0.1s; }
.fade-in-section:nth-of-type(2) { animation-delay: 0.3s; }
.fade-in-section:nth-of-type(3) { animation-delay: 0.5s; }
.fade-in-section:nth-of-type(4) { animation-delay: 0.7s; }

@keyframes fadeInUpSection {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mt-5.text-center.d-flex.flex-column {
    background: linear-gradient(135deg, #f8fafc 80%, #e0e7ff 100%);
    max-width: 420px;
    padding: 2.5rem 1.5rem 2rem 1.5rem;
}

.mt-5.text-center.d-flex.flex-column p {
    font-size: 1.15em;
    margin-bottom: 0.7rem;
}

.projects-section,
.experiences-section {
    max-width: 900px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.project-card {
    background: rgba(255,255,255,0.85);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    text-decoration: none;
    color: #222;
    padding: 1rem;
    max-width: 260px;
    min-height: 220px;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

.project-card img {
    width: 100%;
    max-width: 200px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.7rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.project-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pom-animated {
    transform: rotate(30deg);
    width: 80px;
    margin: auto;
    height: auto;
    transition: transform 0.3s;
}

.pom-animated:hover {
    transform: rotate(0deg) scale(1.08);
}

@keyframes floatPom {
    from { transform: rotate(30deg) translateY(0); }
    to   { transform: rotate(30deg) translateY(-18px); }
}

.pfp {
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.logo {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.1);
}

.experience-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.experience-item:nth-child(3) { animation-delay: 0.2s; }
.experience-item:nth-child(4) { animation-delay: 0.4s; }
.experience-item:nth-child(5) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to   { opacity: 1; transform: translateY(0);}
}

.timeline {
    width: 120px;
    text-align: right;
    margin-right: 1rem;
    font-size: 1.1em;
    font-weight: 500;
    color: #8f8d8d;
}

.exp-img-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
    position: relative;
}

.companies {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s;
    z-index: 2;
}

.companies:hover {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.connect-vertical {
    position: absolute;
    left: 50%;
    top: 100px;
    transform: translateX(-50%);
    width: 6px;
    height: 50px;
    background: linear-gradient(to bottom, #e0e0e0 60%, #b6b6b6 100%);
    border-radius: 3px;
    animation: growLine 1s ease;
}

@keyframes growLine {
    from { height: 0; }
    to   { height: 50px; }
}

.exp-desc {
    margin-left: 1.5rem;
    min-width: 160px;
}

#navigator {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    width: 15%;
    height: 100%;
    background: rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    border-radius: 0 0 1rem 1rem;
    padding-top: 80px;
}

.main-content{
    margin-left: 20%;
    height: 100vh;
    overflow-y: auto;
}


#navigator nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#navigator a {
    color: #222;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.1em;
}

#navigator a:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #007bff;
}

@media (max-width: 1200px) {
    #navigator {
        display: none !important;
    }
}

@media (max-width: 750px) {
    .fade-in-section,
    .mt-5.text-center.d-flex.flex-column,
    .projects-section {
        max-width: 100vw;
        padding: 0.7rem 0.2rem;
    }

    .fade-in-section{
        width: 90%;
    }

    .pfp-card{
        width: 90%;
    }

    .connect-vertical {
        display: none !important;
    }

    .pfp {
        width: 100px;
        height: 100px;
    }

    .pom-animated,
    #navigator {
        display: none !important;
    }

    .companies {
        width: 50px;
        height: 50px;
    }

    .experience-item {
        min-height: 100px;
    }

    .exp-desc {
        font-size: 0.98em;
    }
}
