@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-size: calc(1rem + 0.5vw);
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(120deg,#F8F9FA, #E6E9F0, #444);
    display: flex;
    flex-direction: column;
    color: #22223b;
}

.active {
    color: #fff;
}

section {
    padding: 100px 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(#F9C5BD, #A8D5E3, #F2F0EA);
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(65,105,228,0.06);
    margin-bottom: 32px;
}

section:not(.home) {
    display: none;
}

section.home {
    display: flex;
}

.logo-img {
    position: fixed;
    top: 28px;
    left: 28px;
    width: 60px;
    height: auto;
    z-index: 10000;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 1rem;
    border-radius: 30px;
    margin: 0 auto;
    max-width: 900px;  
    box-shadow: 0 4px 24px rgba(65,105,228,0.10);
}

.navbar a {
    font-size: 18px;
    color: #4169e4;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 20px;
    margin: 0;
    transition: background 0.2s, color 0.2s;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    display: inline-block;
    letter-spacing: 0.5px;
}

.navbar a.active,
.navbar a:hover {
    background: linear-gradient(45deg, #4169e4,#ffd700);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 100px;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #22223b;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 1.6em; margin-top: 0.5em; }
h3 { font-size: 1.2em; color: #4169e4; }

p, li {
    font-size: 1.08em;
    color: #444;
    line-height: 1.7;
}

.portfolio-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.project {
    background: transparent;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(65,105,228,0.08);
    padding: 28px 24px;
    min-width: 260px;
    max-width: 340px;
    margin: 12px 0;
    text-align: left;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #e6e9f0;
}

.project:hover, .cv-content:hover {
    box-shadow: 0 8px 32px rgba(65,105,228,0.15);
    transform: translateY(-4px) scale(1.03);
}

.cv-content {
  background: transparent;
  border: none;
  box-shadow: none;
}


.portfolio-sci,
.contact-sci,
.skill-sci {
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    overflow: hidden;
}

.portfolio-sci a,
.contact-sci a,
.skill-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #4169e4, #ffd700);
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(65,105,228,0.3);
    opacity: 0;
    animation: slideTop 1s ease forwards;
    position: relative;
    overflow: hidden;
}

.portfolio-sci a:hover,
.contact-sci a:hover,
.skill-sci a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(65,105,228,0.5);
}
.portfolio-sci a i,
.contact-sci a i,
.skill-sci a i {
    position: relative;
    z-index: 1;
    transition: color 1.0s, all 2.0s;
    margin: 0;
    padding: 0;
    font-size: 1em;
    line-height: 1;
}


.portfolio-sci a:hover i,
.contact-sci a:hover i,
.skill-sci a:hover i {
    color: #ffd700;
}

.portfolio-sci a::after,
.contact-sci a::after,
.skill-sci a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgb(30, 52, 78);
    border-radius: 50%;
    transform: scale(.88);
    z-index: -1;
    transition: 1.0s;
}

.portfolio-sci a:hover::after,
.contact-sci a:hover::after,
.skill-sci a:hover::after {
    transform: scale(0);
}

.contact-sci a:nth-child(1) { animation-delay: 0.3s; }
.contact-sci a:nth-child(2) { animation-delay: 0.5s; }
.contact-sci a:nth-child(3) { animation-delay: 0.7s; }
.contact-sci a:nth-child(4) { animation-delay: 0.9s; }
.contact-sci a:nth-child(5) { animation-delay: 1.1s; }

.skill-sci a:nth-child(1) { animation-delay: 0.3s; }
.skill-sci a:nth-child(2) { animation-delay: 0.5s; }
.skill-sci a:nth-child(3) { animation-delay: 0.7s; }

.portfolio-sci a:nth-child(1) { animation-delay: 0.3s; }
.portfolio-sci a:nth-child(2) { animation-delay: 0.5s; }
.portfolio-sci a:nth-child(3) { animation-delay: 0.7s; }

.btn-primary {
    background: #ffd700;
    color: #223;
    margin-left: 12px;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(65,105,228,0.08);
    transition: filter 0.2s, transform 0.2s;
    cursor: pointer;
}

.btn-hire {
    background: #ffd700;
    color: #223;
    margin-left: 12px;
    border: none;
    border-radius: 24px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(65,105,228,0.08);
    transition: filter 0.2s, transform 0.2s;
    cursor: pointer;
}

.btn-primary:hover, .btn-hire:hover {
    filter: brightness(0.95);
    transform: scale(1.05);
}

.profile-pic {
    width: 180px;
    height: 180px;
    margin-right: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(65,105,228,0.10);
    border: 4px solid #fff;
}

.footer {
    text-align: center;
    padding: 24px 0;
    font-size: 0.95em;
    color: #444;
    background-color: #f0f4f8; /* optional: soft background */
    border-top: 1px solid #e6e9f0;
}


@media (max-width: 1200px) {
    body { font-size: 1.1rem; }
    .navbar { max-width: 98vw; }
}

@media (max-width: 900px) {
    .portfolio-content { flex-direction: column; align-items: center; }
    .navbar { gap: 18px; padding: 0.75rem 1rem; }
}

@media (max-width: 768px) {
    body { font-size: 1rem; }
    .navbar { flex-wrap: wrap; gap: 12px; }
    .profile-pic { width: 120px; height: 120px; }
    section { padding: 24px 0; }
}

@media (max-width: 480px) {
    body { font-size: 0.95rem; }
    .navbar { top: 8px; padding: 0.5rem 0.5rem; border-radius: 18px; }
    .profile-pic { width: 80px; height: 80px; }
    section { border-radius: 8px; }
}

@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
