@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

html {
	scroll-behavior: smooth;
}

body {
	background: white;
}

.navbar_ {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 20px 10%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: rgba(46, 2, 73, 0);
	color: #fff;
	z-index: 100;
	transition: 1s
}

.stickyy {
	background: rgba(46, 2, 73, 1);
	padding: 8px 2%;
}

.logo {
	position: relative;
	font-size: 25px;
	color: #dedede;
	text-decoration: none;
	font-weight: 600;
}

.logo:hover {
	color: #d1a1d1;
}

.logo::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #120069;
	animation: showRight 1s ease forwards;
	animation-delay: .2s;
}

body[data-bs-theme="dark"] .logo::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #0b004c; /* Ciemniejszy odcień */
	animation: showRight 1s ease forwards;
	animation-delay: .2s;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 20px;
	margin-top: 5px;
}

.stickyy .nav-links {
	margin-top: 10px;
}

.nav-links a {

	color: #dedede;
	text-decoration: none;
	font-size: 17px;
	font-weight: 600;
	margin-left: 20px;
}

.nav-links a:hover {
	color: #d1a1d1;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
}

.theme-toggle:hover {
    opacity: 0.8;
}

.intro {
	background: #120069;
	display: block;
	padding-bottom: 1rem;
}

body[data-bs-theme="dark"] .intro {
	background: #0b004c; 
	color: #e0e0e0; 
	display: block;
	padding-bottom: 1rem;
}

.home {
	flex-wrap: wrap;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 15%;
	color: white;

}

.home-content {
	margin-top: 150px;
	max-width: 600px;
	flex: 1;
	margin-right: 20px;
}

.home-content h1 {
	position: relative;
	font-size: 50px;
	font-weight: 700;
}

.cursorRole {
	font-weight: 700;
	color: #7c19ff;
	animation: blink 0.7s step-end infinite;
}

@keyframes blink {
	50% {
		color: transparent;
	}
}

#role-text {
	font-size: 36px;
	font-weight: 700;
	margin-top: 5px;
	display: inline-block;
	overflow-wrap: break-word; 
    word-break: break-word; 
}

.home-content h1::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 120%;
	background: #120069;
	animation: showRight 1s ease forwards;
	animation-delay: .6s;
}

body[data-bs-theme="dark"] .home-content h1::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 120%;
	background: #0b004c; /* Ciemniejszy odcień */
	animation: showRight 1s ease forwards;
	animation-delay: .6s;
}

.home-content h3 {
	position: relative;
	font-size: 30px;
	font-weight: 700;
	color: #7c19ff;
}

.home-content h3::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 120%;
	background: #120069;
	animation: showRight 1s ease forwards;
	animation-delay: 1.2s;
}

body[data-bs-theme="dark"] .home-content h3::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 120%;
	background: #0b004c; /* Ciemniejszy odcień */
	animation: showRight 1s ease forwards;
	animation-delay: 1.2s;
}

.home-content p {
	position: relative;
	font-size: 16px;
	margin: 20px 0 40px;
}

.home-content p::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #120069;
	animation: showRight 3s ease forwards;
	animation-delay: 1.5s;
}

body[data-bs-theme="dark"] .home-content p::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #0b004c; /* Ciemniejszy odcień */
	animation: showRight 3s ease forwards;
	animation-delay: 1.5s;
}

.home-content .btn-box {
	position: relative;
	display: flex;
	justify-content: space-between;
	width: 320px;
	height: 50px;
}

.home-content .btn-box::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #120069;
	animation: showRight 1s ease forwards;
	animation-delay: 2s;
	z-index: 2;
}

body[data-bs-theme="dark"] .home-content .btn-box::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #0b004c; /* Ciemniejszy odcień */
	animation: showRight 1s ease forwards;
	animation-delay: 2s;
	z-index: 2;
}

.btn-box a {
	position: relative;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 150px;
	height: 100%;
	background: #7c19ff;
	border: 2px solid #7c19ff;
	border-radius: 10px;
	font-size: 20px;
	color: #ffffff;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 1px;
	z-index: 1;
	overflow: hidden;
	transition: .5s;
}

.btn-box a:hover {
	color: #7c19ff
}

.btn-box a:nth-child(2) {
	background: transparent;
	color: #7c19ff;
}

.btn-box a:nth-child(2):hover {
	color: white;
}

.btn-box a:nth-child(2)::before {
	background: #7c19ff;
}

.btn-box a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: #120069;
	z-index: -1;
	transition: .5s;
}

body[data-bs-theme="dark"] .home-content .btn-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: #0b004c; /* Ciemniejszy odcień */
	z-index: -1;
	transition: .5s;
}

.btn-box a:hover::before {
	width: 100%;
}

.home-icons {
	position: relative;
	display: flex;
	width: 200px;
	display: flex;
	justify-content: space-between;
	margin-top: 5%;
	margin-left: 10%;
	margin-bottom: 50px;
}

.home-icons::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #120069;
	animation: showRight 1s ease forwards;
	animation-delay: 2.4s;
	z-index: 2;
}

body[data-bs-theme="dark"] .home-icons::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #0b004c; /* Ciemniejszy odcień */
	animation: showRight 1s ease forwards;
	animation-delay: 2.4s;
	z-index: 2;
}

.home-icons a {
	position: relative;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 2px solid #7c19ff;
	border-radius: 50%;
	font-size: 20px;
	color: #7c19ff;
	text-decoration: none;
	z-index: 1;
	overflow: hidden;
	transition: .5s;
}

.home-icons a:nth-child(1):hover {
	color: #ffffff;
}

.home-icons a:nth-child(2):hover {
	color: white;
}

.home-icons a:nth-child(3):hover {
	color: red;
}

.home-icons a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: #000000;
	z-index: -1;
	transition: .5s;
}

.home-icons a:nth-child(2)::before {
	background: #0e76a8;
}

.home-icons a:nth-child(3)::before {
	background: white;
}

.home-icons a:hover::before {
	width: 100%;
}

.photo {
	position: relative;
	display: flex;
	justify-content: center;
	margin-top: 15%;
}

.photo::before {
	content: '';
	position: absolute;
	scale: 1.1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #120069;
	z-index: 10;
	animation: coverToReveal 2s forwards;
	animation-delay: 1.4s;
	border-radius: 50%;
}

body[data-bs-theme="dark"] .photo::before {
	content: '';
	position: absolute;
	scale: 1.1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #0b004c; /* Ciemniejszy odcień */
	z-index: 10;
	animation: coverToReveal 2s forwards;
	animation-delay: 1.4s;
	border-radius: 50%;
}

.photo img {
	width: 550px;
	height: 550px;
	background: conic-gradient(rgb(128, 0, 0),
			rgb(0, 0, 128),
			rgb(0, 128, 0),
			rgb(128, 128, 0),
			rgb(128, 0, 128),
			rgb(75, 0, 130));
	border-radius: 50%;
	object-fit: cover;
	padding: 5px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	animation: auraPulse 5s infinite alternate,
		moveUpDown 4s infinite;
	animation-delay: 3.4s;
}

@keyframes coverToReveal {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(0);
	}
}

@keyframes moveUpDown {
	0% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-20px);
	}

	100% {
		transform: translateY(0);
	}
}

@keyframes auraPulse {
	0% {
		box-shadow:
			0 0 20px rgba(0, 0, 0, 0.5),
			0 0 30px rgba(255, 0, 255, 0.1);
	}

	50% {
		box-shadow:
			0 0 30px rgba(0, 0, 0, 0.5),
			0 0 50px rgba(255, 0, 255, 1);
	}

	100% {
		box-shadow:
			0 0 20px rgba(0, 0, 0, 0.5),
			0 0 30px rgba(255, 0, 255, 0.8);
	}
}

.about {
	background: white;
	padding: 100px 20%;
	color: black;
	display: flex;
	justify-content: between;
	flex-wrap: wrap;
}

.about-content {
	display: flex;
	justify-content: center;
	flex-direction: column;
	width: 100%;
	display: block;
}

.about-content h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
	border-bottom: 2px solid #7c19ff;
	display: inline-block;
	padding-bottom: 10px;
	white-space: nowrap;
}

.cursor {
	font-weight: 700;
	color: #000;
	animation: blink 0.7s step-end infinite;
}

@keyframes blink {
	50% {
		color: transparent;
	}
}

.about-content p {
	font-size: clamp(0.7rem, 0.656rem + 0.703vw, 1.2rem);
	line-height: 1.6;
	margin-bottom: 15px;
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
}

.hide {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 3s ease, transform 3s ease;
}

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

.hide.hidden {
	opacity: 0;
	transform: translateY(20px);
}

.about-info {
	display: flex;
	flex-direction: column;
	width: 50%;
}

.about-info h2 {
	margin-bottom: 20px;
}

.details {
	font-size: clamp(0.7rem, 0.684rem + 0.264vw, 1rem);
	margin-left: 10px;
}

.details-icon {
	display: flex;
	flex-direction: row;
	align-items: center;
	margin-bottom: 15px;

}

.about-details {
	width: 50%;
}

.about-details h2 {
	margin-bottom: 20px;
}

.university {
	margin-bottom: 15px;
	font-size: clamp(0.7rem, 0.684rem + 0.264vw, 1rem);
	display: flex;
	flex-direction: row;
	align-items: center;
}

.university img {
	width: clamp(30px, 5vw, 50px);
	height: clamp(30px, 5vw, 50px);
	margin-right: 15px;
}

.university-details {
	display: flex;
	flex-direction: column;
}

.university b {
	width: 100%;
	margin-bottom: 5px;
	font-weight: bold;
}

.university p {
	margin: 0;
}

.grey {
	color: #666;
}

.skills {
	background: #F2F2F2;
	padding: 50px 20%;
	color: black;
	text-align: center;
	display: block;
}

.skills-title h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
	border-bottom: 2px solid #7c19ff;
	display: inline-block;
	padding-bottom: 10px;
	color: #000;
	position: relative;
	overflow: hidden;
	animation: glitch 1s infinite ease-in-out;
}

.skills-title h2.glitch-effect::before,
.skills-title h2.glitch-effect::after {
	content: "Skills";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	color: #7c19ff;
	background: #F2F2F2;
	clip: rect(0, 900px, 0, 0);
	animation: glitch 2s infinite ease-in-out;
}

.skills-title h2.glitch-effect::before {
	left: 2px;
	text-shadow: -2px 0 #ff00c1;
	animation: glitch 2s infinite ease-in-out;
}

.skills-title h2.glitch-effect::after {
	left: -2px;
	text-shadow: -2px 0 #00fff9;
	animation: glitch 2.5s infinite ease-in-out;
}

@keyframes glitch {
	0% {
		clip: rect(0, 900px, 0, 0);
		transform: translate(0px, 0px);
	}
	10% {
		clip: rect(10px, 900px, 85px, 0);
		transform: translate(-2px, -2px);
	}
	20% {
		clip: rect(80px, 900px, 120px, 0);
		transform: translate(2px, -2px);
	}
	30% {
		clip: rect(30px, 900px, 55px, 0);
		transform: translate(-2px, 2px);
	}
	40% {
		clip: rect(20px, 900px, 105px, 0);
		transform: translate(2px, 2px);
	}
	50% {
		clip: rect(50px, 900px, 100px, 0);
		transform: translate(-2px, -2px);
	}
	60% {
		clip: rect(70px, 900px, 65px, 0);
		transform: translate(2px, 2px);
	}
	70% {
		clip: rect(90px, 900px, 40px, 0);
		transform: translate(-2px, 2px);
	}
	80% {
		clip: rect(20px, 900px, 80px, 0);
		transform: translate(2px, -2px);
	}
	90% {
		clip: rect(60px, 900px, 70px, 0);
		transform: translate(-2px, -2px);
	}
	100% {
		clip: rect(0, 900px, 0, 0);
		transform: translate(0px, 0px);
	}
}

.skills-title p {
	font-size: clamp(0.7rem, 0.656rem + 0.703vw, 1.2rem);
	line-height: 1.6;
	margin-bottom: 15px;
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
}

.icon-scroll {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
	padding: 20px 0;
	gap: 20px;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	max-width: 100vw; 
	margin: 0 auto; 
}

.icon-scroll .icons-container {
    display: flex;
    animation: scrollIcons 15s linear infinite;
}

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

.icon {
    min-width: 70px;
	height: 70px;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	background-color: #ffffff;
	box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1);
	margin-left: 1rem;
}
.icon i {
	font-size: 2.25rem;
	color: #7c19ff;
}

.portfolio .section-title {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
	border-bottom: 2px solid #7c19ff;
	display: inline-block;
	padding-bottom: 10px;
}

.portfolio .section-description {
	font-size: clamp(0.7rem, 0.656rem + 0.703vw, 1.2rem);
	line-height: 1.6;
	margin-bottom: 15px;
	max-width: 1500px;
	margin-left: auto;
	margin-right: auto;
}

.portfolio .card {
	border: none;
	transition: transform 0.7s;
}

.portfolio .card-title {
	font-size: 1.8rem;
}

.portfolio .card-text {
	font-size: clamp(0.7rem, 0.656rem + 0.703vw, 1.2rem);
}

.portfolio .tech-icons i {
	font-size: clamp(0.7rem, 0.656rem + 0.703vw, 1.2rem);
	color: #555;
}

.portfolio .tech-icons img {
	width: clamp(0.7em, 0.656rem + 0.703vw, 1.2rem);
	height: clamp(0.7em, 0.656rem + 0.703vw, 1.2rem);
	vertical-align: middle;
}

footer {
	position: relative;
}
.footer-divider {
	height: 2px;
	background: linear-gradient(to right, #444, #777, #444);
	margin: 10px auto;
	width: 80%;
	border-radius: 10px;
}
.footer-links a {
	font-size: 1.2rem;
	color: #ddd;
	text-decoration: none;
	transition: color 0.3s, transform 0.3s;
}
.footer-links a:hover {
	color: #ffcc00;
	transform: scale(1.1);
}
.footer-links i {
	font-size: 1.5rem;
	margin-right: 8px;
}
.footer-email {
	font-size: 1.2rem;
	color: #bbb;
}
.footer-email i {
	font-size: 1.5rem;
	margin-right: 10px;
	color: #ddd;
}

body[data-bs-theme="dark"] #about {
	background-color: #121212; /* Ciemne tło */
	color: #e0e0e0;
}

body[data-bs-theme="dark"] .cursor {
	color: #e0e0e0;
}
body[data-bs-theme="dark"] #skills {
	background-color: #181818; /* Ciemne tło */
	color: #f5f5f5;
}

body[data-bs-theme="dark"] #skills-title {
 	color: white;
}

body[data-bs-theme="dark"] .skills-title h2 {
    color: #e0e0e0; /* Jasny tekst w tytule */
    border-bottom: 2px solid #7c19ff;
}

body[data-bs-theme="dark"] .skills-title h2.glitch-effect::before,
body[data-bs-theme="dark"] .skills-title h2.glitch-effect::after {
    background: #121212; /* Ciemne tło dla glitch efektu */
    color: #7c19ff; /* Kolor tekstu dla glitch efektu */
}

body[data-bs-theme="dark"] #portfolio {
	background-color: #121212; /* Ciemne tło */
	color: #e0e0e0;
}

body[data-bs-theme="dark"] .icon{
	background-color: #212529;
}

@keyframes showRight {
	100% {
		width: 0%;
	}
}

@media (max-width: 1600px) {

	.photo img {
		width: 400px;
		height: 400px;
	}

	.home {
		justify-content: center;
	}

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px;
        right: 20px;
        background: rgba(46, 2, 73, 1);
        width: 220px;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Cień */
        transform: translateY(-20px);
    }

	.navbar.active .nav-links {
		display: flex;
	}

    .nav-links li {
        margin: 0.5rem 0;
    }

	.nav-links a {
        text-decoration: none;
        color: #fff;
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 5px;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .nav-links.active {
        display: flex;
    }

	.stickyy {
		background: rgba(46, 2, 73, 1);
		padding: 8px 5%;
	}

	.stickyyy{
		background: rgba(46, 2, 73, 1);
	}

}

@media (max-width: 1300px) {

	.home {
		padding: 0 10%;
	}

	.home {
		justify-content: center;
	}

	.photo img {
		width: 250px;
		height: 250px;
	}

	.about {
		padding: 50px 5%;
	}

	.skills {
		padding: 50px 5%;
	}
}

@media (max-width: 768px) {

	.about {
		padding: 50px 5%;
	}

	.skills {
		padding: 50px 5%;
	}

}

@media (min-width: 1080px) and (min-height: 1200px) {

	.about {
		padding: 50px 10%;
	}

	.skills {
		padding: 50px 10%;
	}

}

@media (min-width: 1600px) and (min-height: 1200px) {

	.about {
		padding: 50px 10%;
	}

	.skills {
		padding: 50px 10%;
	}

}