 :root {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --text: #b0d4ff;
    --text-muted: #b0d4ff;
    --primary: #40c4ff;
    --primary-glow: rgba(64, 196, 255, 0.35);
    --accent: #a78bfa;
    --card: rgba(20, 25, 45, 0.82);
    --border: rgba(100, 180, 255, 0.18);
    --shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    --nav-link: #ffffff;
    --nav-link1: #000000;

    --scrollbar-bg: #0f0c29;
    --scrollbar-thumb: #1e1b41;
    --scrollbar-hover: #5967ff;
    --profile-border: rgba(64, 196, 255, 0.45);
    --profile-inner-glow: rgba(64, 196, 255, 0.2);
    --item-bg-muted: rgba(64, 196, 255, 0.07);
    --item-bg-hover: rgba(64, 196, 255, 0.18);
    --btn-grad-start: #3a9eff;
    --btn-grad-end: #7a5aff;
    --btn-shadow: rgba(58, 158, 255, 0.25);
    --btn-hover-shadow: rgba(64, 196, 255, 0.4);
    --btn-hover-active: rgba(64, 196, 255, 0.3);
    --white: #ffffff;
    --black: #000000;
    --header-bg: #051741;
    --header-bg-dark: #041233;
    --nav-dropdown-grad: linear-gradient(to bottom, #051741, #041233);
    --header-line: #ffffff;
    --header-after: rgba(255, 255, 255, 0.5);
    --box-shadow: rgba(0, 0, 0, 0.35);
    --header-nav: rgba(255, 255, 255, 0.08);
    --box-shadow1: rgba(0,0,0,0.5);
    --name-background: #004a99;
    --name-background1: #4c1d95;
    --skills-before: #202049;
    --skills-before1: #2e2e50;
    --skill-item-hover: rgb(51, 0, 102);
    
    --surface-dark: #211a29;
    --surface-darker: #0f0c29;
    --card-heading: #e0e0ff;
    --text-bright: #e4e4e4;
    --glow-purple: rgba(154, 72, 255, 0.2);
    --glow-blue: rgba(89, 169, 255, 0.2);
	--text-translucent: rgba(255, 255, 255, 0.14);
	--achievement-item-h3: #9a48ff;
	--achievement-item-h3-2: #59a9ff;
	--badge-card: rgba(154, 72, 255, 0.22);
	--badge-card-opacity: rgba(154, 72, 255, 0.5);
	--slider-button-bg: rgba(154, 72, 255, 0.25);
	--slider-shadow1: rgba(89, 169, 255, 0.45);
	--slider-shadow2: rgba(154, 72, 255, 0.7);

	--body-bg0: url('../images/midnightBackground.png');
	--body-bg1: url('../images/midnightBackgroundDigitalizedDesktop.png');
    --body-bg2: url('../images/midnightBackgroundDigitalizedTablet.png');
    --body-bg3: url('../images/midnightBackgroundDigitalizedMobile.png');
	--body-bg4: url('../images/midnightBackground.png');
	--body-bg5: url('../images/morningDarken2.png');
	--body-bg6: url('../images/midnightBackgroundDigitalizedDesktop.png');


}

.light-theme {
    --bg-gradient: linear-gradient(135deg, #e2e8f0, #cbd5e0, #94a3b8);
    --surface-dark: #f1f5f9;  
    --surface-darker: #e2e8f0; 
    
    --card: #ffffff;           
    --border: rgba(0, 50, 100, 0.15); 
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    
    --text: #0f172a;           
    --text-muted: #475569;     
    --text-bright: #000000;
    --card-heading: #1e293b;
    
    --primary: #004a99;        
    --primary-glow: rgba(0, 74, 153, 0.1);
    --accent: #4c1d95;        
    --nav-link: #004a99;
	--nav-link1:rgb(255, 255, 255);
    
    --header-bg: #ffffff;
    --header-bg-dark: #f8fafc;
    --nav-dropdown-grad: linear-gradient(to bottom, #ffffff, #f1f5f9);
    --header-line: #004a99;
    --header-after: rgba(0, 74, 153, 0.25);
    --box-shadow: rgba(0, 0, 0, 0.15);
	--text-translucent: #004a99;

    --name-background: #2b064d;
    --name-background1: hsl(268, 69%, 47%);
    --skills-before: #cad5e0;  
    --skills-before1: #b2c6e0;
    --skill-item-hover: #f1f5f9;
    
    --item-bg-muted: #f1f5f9;
    --item-bg-hover: #e2e8f0;
    --btn-grad-start: #004a99;
    --btn-grad-end: #4c1d95;
    
    --white: #ffffff;
    --black: #000000;

	--body-bg0: url('../images/morningBackgroundDigitalizedMobileNewEnhanced.png');
	--body-bg1: url('../images/morningBackgroundDigitalizedDesktop.png');
    --body-bg2: url('../images/morningBackgroundDigitalizedTablet.png');
    --body-bg3: url('../images/morningBackgroundDigitalizedMobile.png');;
	--body-bg4: url('../images/morningDarken.png');
	--body-bg5: url('../images/morningDarken2.png');
	--body-bg6: url('../images/morningDarkenWithImageTablet.png');


}

body, 
.hero-container, 
.card, 
.skill-item, 
.skills-display,
header {
    transition: background-color 0.5s ease, 
                background-image 0.5s ease, 
                color 0.5s ease, 
                border-color 0.5s ease, 
                box-shadow 0.5s ease;
}

html,
body {
	width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	scroll-padding-top: 110px;
}

body {
	margin: 0;
	padding: 0;
	color: var(--text);
	background: var(--bg-gradient);
	position: relative;
	min-height: 100vh;
    font-family: "Tektur", sans-serif;


}

::-webkit-scrollbar {
    width: 12px; 
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-bg); 
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb); 
    border-radius: 10px;
    border: 3px solid var(--scrollbar-bg); 
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover); 
}

html {
	overflow-y: scroll;
	overscroll-behavior: auto;
}


.fx-reveal {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.fx-reveal.fx-visible {
	opacity: 1;
}

.fx-rise {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform, opacity;
}

.fx-rise.fx-visible {
	opacity: 1;
	transform: translateY(0);
}


.hero {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 2em;
	margin: 0 auto;
	float: right;
	flex-wrap: wrap;
}

.hero .text {
	width: 100%;
	display: flex;
	gap: 0.5em;
	padding-top: 3em;
	color: var(--nav-link);
	float: left;
	order: 1;
	text-align: left;
	flex: 1.2;
	align-items: flex-end;
}

.hero h1 {
	white-space: nowrap;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin: 0;
	margin-top: 1em;
}

.hero h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 500;
    margin: -0.8em 0 1em 0;
    opacity: 0.9;
}

.hero p {
	margin-top: -1.5em;
    font-size: clamp(1.5rem, 1.5vw, 1.1rem);
    max-width: 600px;
    line-height: 1.6;
}

.contain .h1 {
	padding-bottom: 0;
	color: var(--nav-link);
	text-align: center;
	font-size: 3em;
	padding-top: 3em;
}

.contain {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: var(--body-bg1);
    background-size: cover;
    background-position: center;
    padding: 80px 0; 
    box-sizing: border-box;
}

.hero-text {
	width: 80%;
	flex: 1.2;
	order: 1;
	text-align: left;
}


.profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    width: 100%;
}

.profile-image-box {
    flex: 1;
    display: flex;
    justify-content: center;
	order: 2;
}

.profilePic {
    width: 100%;
    max-width: 400px; 
    height: auto;
    border-radius: 20px;
    display: block; 
    box-shadow: 0 20px 50px var(--box-shadow1);
}

.name {
    font-size: clamp(2.5rem, 4vw, 5rem);
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1.1;
	background: linear-gradient(90deg, white, var(--name-background1)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    white-space: nowrap;
	-webkit-text-stroke: 0.2px black;

}

.title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1b003b;
    margin-bottom: 1.5rem;
	background: linear-gradient(90deg, white, var(--name-background1)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
	-webkit-text-stroke: 0.2px black;

}

.description {
    font-size: clamp(1.5rem, 1.5vw, 2.25rem);
    line-height: 1.8;
    max-width: 700px;
    opacity: 0.9;
	color: white;
}

.skills {
	position: relative;
	display: flex;
	max-width: 100%;
	margin: 10em auto auto auto;
	padding: 8em 0;
	align-items: center;
	justify-content: flex-start;
	gap: 3em;
	box-sizing: border-box;
	overflow-x: hidden;
	border-radius: 4em;
	width: 90%;

}

.skills:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--skills-before) 0%, var(--skills-before1) 100%);
    box-shadow: 0 8px 32px var(--box-shadow);
    opacity: 0.95;
}

.accomplished {
	width: 50%;
	color: var(--nav-link);
	margin-left: 10%;
}

.accomplished h1 {
	font-size: 1.5em;
}


.skills-wrapper {
	display: flex;
	gap: 3em;
	width: 80%;
	margin: auto;
}

.skills-list {
	margin: 0 auto;
	width: 40%;
	margin-right: -15em;
	display: flex;
	flex-direction: column;
	gap: 1em;
	transition: transform 0.5s ease;
	text-align: left;
}

.skills-wrapper.active .skills-list {
	transform: translateX(-240px);
}

.skill-item {
	background: var(--surface-dark);
	color: var(--primary);
	border-radius: 10px;
	cursor: pointer;
	padding: 0.7em 2em;
	text-align: left;
	font-size: 0.7em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
	opacity: 1;
}

.skills-wrapper.active .skill-item {
	opacity: 0.85;
}

.skills-wrapper.active .skill-item:hover {
	opacity: 1;
}

.skills-wrapper.active .skill-item.active {
	opacity: 1;
}

.skill-item.active .dropdown-icon {
	transform: rotate(180deg);
}

.skill-item:hover {
	background: var(--skill-item-hover);
	transform: scale(1.05);
	color: var(--nav-link);
	border: 1px solid var(--nav-link);
}


.skills-display {
	width: 45%;
	min-height: 200px;
	background: var(--surface-dark);
	border-radius: 12px;
	border-top: 3px solid var(--nav-link);
	border-left: 3px solid var(--nav-link);
	padding: 2em;
	color: var(--nav-link);

	opacity: 0;
	transform: translateX(40px);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.skills-display h2{
	color: var(--primary)
}

.skills-wrapper.active .skills-display {
	opacity: 1;
	transform: translateX(0);
}

.skills-list .skill-content {
	display: none;
}

.dropdown-icon {
	width: 30px;
	height: 30px;
	margin: 0;
	transition: transform 0.3s ease;
}

.skill-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.skill-item * {
	pointer-events: none;
}

.knowledge {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;          
    margin: 6rem 0 0 0;
    padding: 4rem 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--skills-before) 0%, var(--skills-before1) 100%);
    box-shadow: 0 8px 32px var(--box-shadow);
    border-radius: 0;    
    backdrop-filter: blur(2px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}



.cards {
	width: 100%;
	max-width: 1400px;
	margin-top: 2rem;
}

.cards1,
.cards2 {
	display: flex;
	flex-wrap: wrap;
	gap: 3.5rem 2.8rem;
	justify-content: center;
	margin: 0 auto;
}

.card {
	background: var(--surface-dark);
	color: var(--text);
	border-radius: 1.5rem;
	padding: 2rem 1.8rem;
	width: 340px;
	margin: 0;
	min-width: 300px;
	display: flex;
	flex-direction: column;
	box-shadow:
		0 -5px 10px var(--glow-purple),
		0 10px 15px var(--glow-purple),
		0 0 8px var(--glow-blue);
	transition: all 0.25s ease;
	animation: glow-slow 7s infinite alternate;
}

.card:hover {
	transform: translateY(-6px);
	animation: glow-fast 2.5s infinite alternate;
	box-shadow:
		0 -10px 20px var(--glow-purple),
		0 15px 30px var(--glow-purple),
		0 0 15px var(--glow-blue);
}

.card h1 {
	text-align: center;
	margin: 0 0 1.4rem;
	font-size: clamp(1.3rem, 2.8vw, 1.55rem);
	color: var(--card-heading);
	font-weight: 600;
	letter-spacing: 0.02em;
	font-family: 'Orbitron', sans-serif;

}

.card .sectioning {
	display: flex;
	gap: 1.8rem;
}

.card .first-side,
.card .second-side {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.first-side {
	border-right: 1px solid var(--text-translucent);
	padding-right: 1.6rem;
}

.second-side {
	padding-left: 1.6rem;
}

.card p {
	margin: 0.35em 0;
	font-size: clamp(0.97rem, 2.4vw, 1.08rem);
	line-height: 1.65;
	color: var(--text-muted);
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
}

@keyframes glow-slow {

	0%,
	100% {
		box-shadow:
			0 -5px 10px rgba(154, 72, 255, 0.08),
			0 10px 15px rgba(89, 169, 255, 0.08),
			0 0 8px rgba(154, 72, 255, 0.06);
	}

	50% {
		box-shadow:
			0 -6px 14px rgba(154, 72, 255, 0.14),
			0 12px 20px rgba(89, 169, 255, 0.12),
			0 0 10px rgba(154, 72, 255, 0.1);
	}
}

@keyframes glow-fast {

	0%,
	100% {
		box-shadow:
			0 -10px 20px rgba(154, 72, 255, 0.25),
			0 15px 30px rgba(154, 72, 255, 0.2),
			0 0 15px rgba(89, 169, 255, 0.35);
	}

	50% {
		box-shadow:
			0 -12px 25px rgba(154, 72, 255, 0.35),
			0 18px 35px rgba(154, 72, 255, 0.3),
			0 0 20px rgba(89, 169, 255, 0.45);
	}
}


.achievement {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 5rem 2rem 7rem;
	text-align: center;
	box-sizing: border-box;
}

.achievement-title {
	font-size: clamp(2.2rem, 6vw, 3.8rem);
	margin: 0 0 3.5rem;
	color: var(--text-muted);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: linear-gradient(90deg, var(--btn-grad-end), var(--btn-grad-start));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.achievements-container {
	display: flex;
	flex-direction: column;
	gap: 5rem;
	align-items: center;
}

.achievement-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 2.5rem;
	width: 100%;
	max-width: 1100px;
}

.achievement-item {
	background: var(--surface-darker);
	border: 1px solid var(--border);
	border-radius: 1.2rem;
	padding: 2rem 1.8rem;
	backdrop-filter: blur(6px);
	box-shadow: 0 8px 32px var(--box-shadow);
	transition: all 0.3s ease;
	text-align: left;
}

.achievement-item:hover {
	transform: translateY(-8px);
	box-shadow: 0 16px 48px rgba(89, 169, 255, 0.25),
		0 0 20px rgba(154, 72, 255, 0.18);
}

.achievement-item h3 {
	font-size: 1.45rem;
	margin: 0 0 1.1rem;
	color: var(--achievement-item-h3);
	font-weight: 600;
}

.achievement-item p {
	margin: 0.6rem 0;
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--text-muted);
}

.certificates-gallery {
	width: 100%;
	max-width: 1200px;
}

.gallery-row {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: center;
	margin-bottom: 2.5rem;
}

.gallery-row img {
	width: 100%;
	max-width: 520px;
	height: auto;
	border-radius: 1rem;
	box-shadow: 0 12px 40px var(--shadow);
	transition: all 0.35s ease;
	object-fit: cover;
}

.gallery-row img:hover {
	transform: scale(1.04);
	box-shadow: 0 20px 60px rgba(89, 169, 255, 0.3),
		0 0 30px rgba(154, 72, 255, 0.25);
}


.badges {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 5rem 2rem 7rem;
	text-align: center;
	box-sizing: border-box;
}

.badges h1 {
	font-size: clamp(2.2rem, 6vw, 3.6rem);
	margin: 0 0 3.5rem;
	color: var(--text-muted);
	font-weight: 700;
	letter-spacing: 0.05em;
	background: linear-gradient(90deg, var(--achievement-item-h3), var(--achievement-item-h3-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.badges-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem 1.8rem;
	justify-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.badge-card {
	background: var(--scrollbar-bg);
	border: 1px solid var(--badge-card);
	border-radius: 1.2rem;
	padding: 1.4rem;
	width: 100%;
	max-width: 220px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.28s ease;
	box-shadow: 0 6px 20px var(--shadow);
	backdrop-filter: blur(4px);
}

.badge-card:hover {
	transform: translateY(-10px) scale(1.06);
	box-shadow: 0 16px 40px rgba(89, 169, 255, 0.28),
		0 0 24px rgba(154, 72, 255, 0.22);
	border-color: rgba(154, 72, 255, 0.45);
}

.badge-card img {
	width: 100%;
	height: auto;
	max-height: 140px;
	object-fit: contain;
	border-radius: 0.8rem;
	transition: transform 0.35s ease;
}

.badge-card:hover img {
	transform: scale(1.08);
}


.slider-container {
	position: relative;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 5rem 1.5rem 7rem;
	box-sizing: border-box;
}

.slider-title {
	text-align: center;
	color: var(--card-heading);
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	margin: 0 0 3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	background: linear-gradient(90deg, var(--achievement-item-h3), var(--achievement-item-h3-2));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.slider {
	overflow: hidden;
	width: 100%;
	border-radius: 1.2rem;
	box-shadow: 0 12px 40px var(--shadow);
}

.slider-wrapper {
	display: flex;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.slide {
	flex: 0 0 100%;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	border-radius: 1rem;
	background: linear-gradient(135deg, var(--skills-before) 0%, var(--skills-before1) 100%);

}

.slider-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 2px solid rgba(154, 72, 255, 0.6);
	background: rgba(19, 28, 72, 0.5);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 2.2rem;
	font-weight: bold;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 4px 14px var(--shadow), 0 0 14px var(--badge-card-opacity);
	animation: glowPulse 2.5s infinite alternate;
}

.slider-button:hover {
	transform: translateY(-50%) scale(1.18);
	background: var(--slider-button-bg);
	border-color: var(--achievement-item-h3);
	box-shadow: 0 8px 24px var(--slider-shadow1), 0 0 28px var(--slider-shadow2);
}

.slider-button:active {
	transform: translateY(-50%) scale(0.92);
}

.prev {
	left: 20px;
}

.next {
	right: 20px;
}

@keyframes glowPulse {
	0% {
		box-shadow: 0 4px 14px var(--box-shadow), 0 0 14px var(--glow-purple);
	}

	100% {
		box-shadow: 0 6px 18px var(--box-shadow1), 0 0 22px var(--badge-card-opacity);
	}
}


@media (prefers-reduced-motion: reduce) {

	.fx-reveal,
	.fx-rise {
		transition: opacity 0.01ms linear;
		transform: none !important;
	}
}

@media (min-width: 993px) and (max-width: 1024px) {
    .hero {
        display: flex !important;
        flex-direction: row !important; 
        width: 100% !important;
        max-width: 1200px;
        margin: 0 auto !important;
        float: none !important; 
        justify-content: center;
        align-items: center;
        gap: 3rem;
    }

    .hero-text {
        flex: 1;
        width: auto !important;
        margin: 0 !important; 
        float: none !important;
        order: 1;
        text-align: left; 
    }

    .profile {
        flex: 1;
        display: flex !important;
        justify-content: center;
        order: 2;
    }

    .profilePic {

		display: none !important;
        width: 100% !important;
        max-width: 380px; 
        height: auto;
        border-radius: 20px;
        box-shadow: 0 20px 50px var(--box-shadow1);
    }

    .hero-container {
        background-position: center;
        padding: 100px 40px;
		background-image: var(--body-bg0) !important;
    }

	.name{
		background: linear-gradient(90deg, var(--name-background), var(--name-background1)); 
		-webkit-background-clip: text; 
		-webkit-text-fill-color: transparent; 
	}

	.title{
		background: linear-gradient(90deg, var(--title-background), var(--title-background1)); 
		-webkit-background-clip: text; 
		-webkit-text-fill-color: transparent; 
	}
}















@media (min-width: 768px) and (max-width: 1024px) {

	.skills {
		padding: 4rem 5% 6rem;
		margin: 3rem auto 1rem;
		flex-direction: column;
		gap: 3rem;
		align-items: center;
	}

	.accomplished {
		width: 100%;
		max-width: 720px;
		margin: 0 auto 2.5rem;
		text-align: center;
	}

	.accomplished h1 {
		font-size: clamp(1.15rem, 2.9vw, 1.4rem);
		margin: 0.9rem 0;
		line-height: 1.45;
	}

	.skills-wrapper {
		width: 100%;
		max-width: 900px;
		display: flex;
		flex-direction: row;
		gap: 2rem;
		align-items: flex-start;
	}

	.skills-list {
		width: 42%;
		max-width: 380px;
		margin: 0;
		transform: none !important;
	}

	.skill-item {
		font-size: clamp(0.9rem, 2.4vw, 1.02rem);
		padding: 0rem 1.2rem;
		min-height: 3.2rem;
		border-radius: 10px;
		margin-bottom: 0.8rem;
		color: var(--primary);
		background: var(--header-bg);
	}

	.skill-item:hover,
	.skill-item:focus-visible,
	.skill-item:active {
		background: var(--header-bg);
		transform: translateX(4px);
		color: var(--primary);
	}

	.skill-header h1 {
		font-size: 1.05em;
	}

	.dropdown-icon {
		width: 22px;
		height: 22px;
	}


	.skills-display {
		width: 58%;
		min-height: 220px;
		margin: 0;
		padding: 1.6rem 1.8rem;
		background: var(--card);
		border: 1px solid var(--border);
		border-radius: 12px;
		opacity: 1;
		transform: none !important;
		position: relative;
	}

	.skills-display h2 {
		font-size: 1.35rem;
		margin-bottom: 1rem;
		color: var(--primary);
	}

	.skills-display p {
		font-size: 1rem;
		line-height: 1.55;
	}

	.skills-wrapper:not(.active) .skills-display::before {
		content: "Behind every skill is a story. Click one to discover a piece of mine.";
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #999;
		font-style: italic;
		font-size: 1.05rem;
	}

	.skill-item.active {
		background: var(--header-bg);
		border-left: 4px solid #a78bfa;
		margin-right: -1.5em;
	}

	.hero {
        width: 95%;
		margin: 0 auto;
		display: flex !important;
		flex-direction: row; 
		align-items: center;
		justify-content: center;
		float: none; 
		gap: 2rem;
		padding: 40px 0;
	}

	.hero .text {
		width: 100%;
        padding-top: 0;
        flex: 1.2;
		margin: 0;
        order: 1;
	}

	.hero-text{
		margin: 0 auto;
	}

	.hero h1 {
		font-size: clamp(2.5rem, 4.5vw, 3.2rem);
		margin-top: 0.5em;
		white-space: nowrap;
		line-height: 1.1;
	}

	.hero h2 {
		font-size: clamp(1.4rem, 2.5vw, 1.8rem);
		margin: 0.5rem 0 1rem 0;
	}

	.hero p {
		font-size: 1.25rem;
		margin-top: 0;
		line-height: 1.5;
	}

	.profilePic {
		max-width: 320px;
		width: 100%;
		height: auto;
		border-radius: 15px; 
	}

	.profile{
		display: flex;
        flex-direction: row; 
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
	}

	.profile-image-box {
        flex: 1;
		display: none !important;
        justify-content: center;
        order: 2;
		width: 100% !important;
    }

	.name {
        font-size: clamp(2.2rem, 4vw, 2.8rem); 
        margin-bottom: 0.3rem;
        text-align: left;        
        width: 100%;
    }

    .title {
		margin-top: 1%;
        font-size: clamp(1.3rem, 2.5vw, 1.6rem);
        margin-bottom: 1rem;
        text-align: left;        
        width: 100%;

    }

    .description {
		margin-top: 1%;
        font-size: 1.25rem; 
        line-height: 1.4;
        max-width: 50%;
        margin-left: 0; 
		text-align: left;
		margin-left: 0;
        margin-right: auto;
    }

    .hero {
        width: 100%;
        float: none;
        display: block; 
    }

	.hero-container {
		min-height: auto;
        padding: 60px 20px;
        background-position: left center;
		background-image: var(--body-bg6) !important;
    }

	.hero-text{
		width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        text-align: left;        
        margin: 0;
	}
}



























@media (min-width: 1025px) {
	.profilePic{
		display: none;
	}
}

@media (max-width: 1024px) {
	.badges {
		padding: 4rem 1.8rem 6rem;
	}

	.badges h1 {
		margin-bottom: 3rem;
	}

	.badges-grid {
		gap: 1.8rem 1.6rem;
	}

	.badge-card {
		max-width: 200px;
		padding: 1.2rem;
	}

	.badge-card img {
		max-height: 130px;
	}

	.slider-container {
		padding: 4rem 1.2rem 6rem;
	}

	.slider-title {
		margin-bottom: 2.5rem;
	}

	.prev {
		left: 10px;
	}

	.next {
		right: 10px;
	}

	.slider-button {
		width: 55px;
		height: 55px;
		font-size: 2rem;
	}

	.achievement {
		padding: 4rem 1.8rem 6rem;
	}

	.achievement-list {
		gap: 2rem;
	}

	.achievement-item {
		padding: 1.8rem 1.5rem;
	}

	.achievement-item h3 {
		font-size: 1.35rem;
	}

	.achievement-item p {
		font-size: 1.05rem;
	}

	.gallery-row img {
		max-width: 460px;
	}

	.hero-container {
		min-height: 40vh;
		background-image: url('../images/midnightBackground.png');
	}

	.profile {
		display: flex;

	}

	.profilePic {
		display: flex;
		width: 50%;
		height: 50%;
	}

	.hero {
		width: 70%;
		flex-direction: column;
		float: none;
		margin: 0 auto;
	}

	.hero .text {
		font-size: 1em;
		padding-top: 2em;
		align-items: center;
		justify-content: center;
	}

	.contain .h1 {
		font-size: 2.5em;
		padding-top: 2em;
	}

	.knowledge {
		padding: 3.2rem 1.8rem;
		margin-top: 5rem;
	}

	.cards1,
	.cards2 {
		gap: 3rem 2.4rem;
	}

	.card {
		width: 360px;
		padding: 1.8rem 1.5rem;
	}

	.card .sectioning {
		gap: 1.4rem;
	}

	.first-side {
		border-right: 1px solid var(--text-translucent);
		padding-right: 1.3rem;
	}

	.second-side {
		padding-left: 1.3rem;
	}

	.card h1 {
		font-size: clamp(1.25rem, 3vw, 1.45rem);
		margin-bottom: 1.1rem;
	}

	.card p {
		font-size: clamp(0.94rem, 2.4vw, 1.02rem);
		line-height: 1.65;
		gap: 0.55rem;
	}
}

@media (max-width: 992px) {
    .profile {
        flex-direction: column; 
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image-box {
        order: 1; 
    }
    
    .hero-text {
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profilePic {
        max-width: 280px; 
    }
}

@media (max-width: 820px) {

	.hero .text{
	  font-family: "Space Grotesk", sans-serif;
	}

	.cont{
		font-size: 1.8rem;
	}

	.knowledge {
		padding: 2.6rem 1.4rem;
		margin-top: 4.2rem;
	}

	.cards1,
	.cards2 {
		gap: 2.2rem;
		justify-content: center;
	}

	.card {
		width: 100%;
		max-width: 460px;
		padding: 1.9rem 1.6rem;
	}

	.card .sectioning {
		gap: 1.2rem;
	}

	.first-side {
		padding-right: 1.1rem;
	}

	.second-side {
		padding-left: 1.1rem;
	}

	.card h1 {
		font-size: clamp(1.2rem, 3.8vw, 1.38rem);
	}

	.card p {
		font-size: clamp(0.92rem, 2.8vw, 0.99rem);
		line-height: 1.7;
	}

	.badges {
		padding: 3.5rem 1.5rem 5rem;
	}

	.badges-grid {
		grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
		gap: 1.6rem;
	}

	.badge-card {
		max-width: 180px;
		padding: 1.1rem;
		border-radius: 1rem;
	}

	.badge-card img {
		max-height: 120px;
	}

	.achievement-title {
		margin-bottom: 3rem;
	}

	.achievements-container {
		gap: 4rem;
	}

	.achievement-list {
		grid-template-columns: 1fr;
		max-width: 600px;
	}

	.achievement-item {
		text-align: center;
	}

	.accomplished h1{
		font-size: clamp(1.1rem, 3.5vw, 1.25rem);
		margin: 0.8rem 0;
		line-height: 1.4;
	}

	.gallery-row {
		gap: 1.8rem;
		margin-bottom: 2rem;
	}

	.gallery-row img {
		max-width: 90vw;
	}
}


@media (max-width: 767px) {
	.hero {
        width: 100%; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
        float: none;
        gap: 1em;
    }

	.profile {
		display: flex;
		justify-content: center;
		margin: -5em auto auto auto;
	}

	.profile img{
		border-radius: 50%;
		border: 4px solid rgba(199, 88, 44, 0.45);
		box-shadow: 0 0 60px rgba(219, 85, 45, 0.35), inset 0 0 30px rgba(218, 133, 53, 0.2);
		transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	}

	.profilePic {
		width: 100%;
		margin: 5em auto auto auto;
	}

	.hero-text {
		font-size: 1.2em;
		padding-top: 1.5em;
		text-align: center;
		align-items: center;
		justify-content: center;
		margin: 0 auto;
	}

	.hero-container{
		background-image: var(--body-bg4);
	}

	.name{
		background: linear-gradient(90deg, white, var(--name-background1)); 
		-webkit-background-clip: text; 
    	-webkit-text-fill-color: transparent; 
		-webkit-text-stroke: 0.4px black;
	}

	.title{
		background: linear-gradient(90deg, white, var(--name-background1)); 
		-webkit-background-clip: text; 
    	-webkit-text-fill-color: transparent;
		-webkit-text-stroke: 0.4px black; 
	}

	.hero-text{
		margin: 0 auto;
	}

	.contain .h1 {
		font-size: 2em;
		padding-top: 1.5em;
	}

	.contain {
		width: 95%;
		margin: 0 auto;
		justify-content: center;
	}

	.skills {
		padding: 3rem 5% 5rem;
		margin: 2rem auto 1rem;
		flex-direction: column;
		gap: 2.5rem;
		align-items: center;
	}

	.accomplished {
		width: 95%;
		margin-left: -0.25em;
		text-align: center;
	}

	.accomplished h1 {
		font-size: clamp(1.05rem, 4.2vw, 1.25rem);
		margin: 0.8rem 0;
		line-height: 1.4;
	}

	.skills-wrapper {
		width: 100%;
		flex-direction: column;
		gap: 1.2rem;
	}

	.skills-list {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 0.8rem;
		margin: 0;
	}

	.skills-display {
		display: none !important;
	}

	.skill-item {
		font-size: clamp(0.95rem, 3.8vw, 1.1rem);
		padding: 1.1rem 1.4rem;
		min-height: 3.8rem;
		border-radius: 12px;
		background: var(--header-bg);
		cursor: pointer;
		transition: background 0.22s ease, transform 0.18s ease;
		position: relative;
		z-index: 1;
		color: var(--primary);
	}

	.skill-item:hover,
	.skill-item:focus-visible,
	.skill-item:active {
		background: var(--header-bg);
		color: var(--primary);
		transform: translateY(-1px);
	}

	.skill-header {
		width: 100%;
		justify-content: space-between;
		align-items: center;
		margin-top: 0.5em;
	}

	.skill-header h1 {
		font-size: 1.1em;
	}

	.dropdown-icon {
		width: 26px;
		height: 26px;
		transition: transform 0.3s ease;
	}

	.skill-content {
		display: none;
		width: 100%;
		margin-top: 1rem;
		padding: 0;
		background: transparent;
		border: none;
		color: var(--card-heading);
		font-size: 0.97rem;
		line-height: 1.55;
		margin-left: -1em;
	}

	.skill-item.active .skill-content {
		display: block;
	}

	.skill-content h2 {
		font-size: 1.35rem;
		margin: 0 0 1rem;
		color: var(--primary);
	}

	.skill-content p {
		font-size: 0.98rem;
		line-height: 1.55;
		margin: 0;
	}

	.skill-item.active {
		background: var(--header-bg);
		border-left: 5px solid #a78bfa;
		border-radius: 12px 12px 0 0;
		margin-bottom: 0;
	}

	.skill-item.active .dropdown-icon {
		transform: rotate(180deg);
	}

	.skill-content {
		overflow: hidden;
		max-height: 0;
		padding-top: 0;
		padding-bottom: 0;
		transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1),
			padding 0.36s ease;
	}

	.skill-item.active .skill-content {
		max-height: 1200px;
		padding: 1.5rem 1.6rem;
	}

	.skill-item {
		flex-direction: column;
		align-items: flex-start;
		padding: 0.5rem 1.4rem 0.5rem 1.4rem;
	}

	.slider-container {
		padding: 3rem 1rem 5rem;
	}

	.slider-title {
		font-size: clamp(2rem, 7vw, 2.8rem);
		margin-bottom: 2rem;
	}

	.slider-button {
		width: 50px;
		height: 50px;
		font-size: 1.9rem;
	}

	.prev {
		left: 8px;
	}

	.next {
		right: 8px;
	}

}

@media (max-width: 600px) {
	.card {
		max-width: 420px;
		padding: 1.7rem 1.5rem;
	}

	.cards1,
	.cards2 {
		gap: 2.4rem;
	}

	.card h1 {
		font-size: clamp(1.15rem, 4.2vw, 1.32rem);
	}

	.card p {
		font-size: clamp(0.89rem, 3.3vw, 0.97rem);
		line-height: 1.75;
	}

	.card .sectioning {
		gap: 1rem;
	}

	.first-side,
	.second-side {
		gap: 0.5rem;
	}

	.badges {
		padding: 3rem 1.2rem 4.5rem;
	}

	.badges h1 {
		font-size: clamp(2rem, 7vw, 2.8rem);
		margin-bottom: 2.5rem;
	}

	.badges-grid {
		gap: 1.4rem;
	}

	.badge-card {
		max-width: 160px;
		padding: 1rem;
		border-radius: 0.9rem;
	}

	.badge-card img {
		max-height: 110px;
	}

	.achievement {
		padding: 3rem 1.2rem 5rem;
	}

	.achievement-title {
		font-size: clamp(2rem, 7vw, 2.8rem);
	}

	.achievement-item {
		padding: 1.6rem 1.3rem;
	}

	.achievement-item h3 {
		font-size: 1.3rem;
	}

	.achievement-item p {
		font-size: 1rem;
	}

	.gallery-row {
		gap: 1.5rem;
	}
}


@media (max-width: 480px) {
	.slider-button {
		width: 48px;
		height: 48px;
		font-size: 1.8rem;
	}

	.profile{
		margin-top: -5em;
	}

	.name{
		white-space: normal;
	}

	.description{
		font-size: 1.15rem;
	}
}


/*================================== FOOTER MEDIAS ======================================= */
@media (min-width: 1100px) {
	.footer-container {
		gap: 6rem;
	}

	.links {
		gap: 3rem 4rem;
	}
}


@media (max-width: 767px) {
	.footer-container {
		grid-template-columns: 1fr 3fr;
		gap: 4rem;
		align-items: start;
	}

	.left {
		align-items: flex-start;
		text-align: left;
	}

	.tech-icons,
	.social-links {
		justify-content: flex-start;
	}

	.links {
		grid-template-columns: repeat(4, 1fr);
		text-align: left;
	}
}
