/* Custom CSS Enhancements for Portfolio */

/* CSS Variables for easy theming */
:root {
	--primary-gradient: linear-gradient(135deg, #6fc3df 0%, #8d82c4 50%, #ec8d81 100%);
	--accent-color: #9bf1ff;
	--accent-secondary: #8d82c4;
	--bg-dark: #242943;
	--bg-darker: #1a1f33;
	--text-light: rgba(255, 255, 255, 0.85);
	--card-bg: rgba(255, 255, 255, 0.05);
	--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scrolling */
html {
	scroll-behavior: smooth;
}

/* Text gradient effect */
.text-gradient {
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Enhanced Banner Section */
#banner {
	min-height: 100vh;
	max-height: none;
}

#banner .tagline {
	font-size: 1.5em;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 1em;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: fadeInUp 1s ease-out 0.3s both;
}

#banner .intro-text {
	font-size: 1.1em;
	line-height: 1.8;
	max-width: 600px;
	margin-bottom: 2em;
	color: var(--text-light);
	animation: fadeInUp 1s ease-out 0.5s both;
}

#banner h1 {
	font-size: 3.5em;
	margin-bottom: 0.3em;
	animation: fadeInUp 1s ease-out both;
}

#banner .actions {
	animation: fadeInUp 1s ease-out 0.7s both;
}

#banner .actions li {
	margin-right: 1em;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Expertise Section */
#expertise {
	background: linear-gradient(180deg, #1f2440 0%, #242943 100%);
	padding: 4em 0;
}

#expertise .inner {
	max-width: 65em;
	margin: 0 auto;
	padding: 0 3em;
	display: grid;
	gap: 1.5em;
}

.expertise-header {
	margin-bottom: 0.5em;
}

.expertise-card {
	display: grid;
	grid-template-columns: minmax(180px, 250px) 1fr;
	align-items: start;
	gap: 2em;
	padding: 2.5em;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	transition: var(--transition-smooth);
}

.expertise-card:hover {
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(155, 241, 255, 0.4);
	transform: translateY(-4px);
}

.expertise-title {
	display: flex;
	flex-direction: column;
}

.expertise-label {
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1.45;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.expertise-text {
	font-size: 1em;
	line-height: 1.9;
	color: var(--text-light);
	margin: 0;
	letter-spacing: 0.01em;
	max-width: 72ch;
}

@media screen and (max-width: 980px) {
	.expertise-card {
		grid-template-columns: 1fr;
		gap: 1.1em;
		padding: 2em 1.5em;
	}
}

@media screen and (max-width: 736px) {
	#expertise {
		padding: 3em 0;
	}

	#expertise .inner {
		padding: 0 1.5em;
	}

	.expertise-label {
		font-size: 0.75em;
	}

	.expertise-text {
		font-size: 0.92em;
		line-height: 1.8;
	}
}

/* About/Technical Skills Section */
#about,
#technical-skills {
	background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
	padding: 6em 0 4em 0;
}

#about .inner,
#technical-skills .inner {
	max-width: 65em;
	margin: 0 auto;
	padding: 0 3em;
}

.about-content {
	display: block;
	margin-top: 2em;
}

.about-content .skills-container {
	max-width: 100%;
}

.about-text p {
	font-size: 1.05em;
	line-height: 1.9;
	color: var(--text-light);
	margin-bottom: 1.5em;
}

.skills-container h3 {
	font-size: 1.3em;
	margin-bottom: 1.5em;
	position: relative;
	display: inline-block;
}

.skills-container h3::after {
	content: '';
	position: absolute;
	bottom: -8px;
	left: 0;
	width: 50px;
	height: 3px;
	background: var(--primary-gradient);
	border-radius: 2px;
}

.ai-tools-strip {
	margin: 2.1em 0 2em;
	padding: 1.35em 1.4em;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 16px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.ai-tools-head {
	display: flex;
	align-items: center;
	gap: 0.95em;
	margin-bottom: 0.95em;
}

.ai-main-icon {
	display: block;
	width: 3.3em;
	height: 3.3em;
	object-fit: contain;
	filter: drop-shadow(0 0 8px rgba(117, 149, 255, 0.32));
	flex-shrink: 0;
}

.ai-tools-intro {
	margin: 0;
	font-size: 0.8em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.96);
}

.ai-tools-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: 0.9em;
}

.ai-tools-list li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 0.2em 1.05em 0.1em;
	gap: 0.5em;
	font-size: 0.7em;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.95);
	position: relative;
	transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.2s ease;
}

.ai-tools-list li:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 10%;
	height: 80%;
	width: 1px;
	background: rgba(255, 255, 255, 0.2);
}

.ai-tools-list li:hover {
	transform: translateY(-2px);
	color: #ffffff;
	text-shadow: 0 0 10px rgba(155, 241, 255, 0.3);
}

.ai-tool-logo {
	width: 2.9em;
	height: 2.1em;
	object-fit: contain;
	filter: drop-shadow(0 0 6px rgba(117, 149, 255, 0.22));
}

.ai-tools-list li:last-child {
	min-width: 95px;
	justify-content: flex-end;
	padding-bottom: 0.5em;
}

.ai-tools-list li:last-child .ai-tool-logo {
	display: none;
}

.skills-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1em;
}

.skill-item {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 1em 1.2em;
	background: var(--card-bg);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: var(--transition-smooth);
}

.skill-item:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-3px);
	border-color: var(--accent-color);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.skill-icon {
	font-size: 1.5em;
}

.skill-name {
	font-weight: 600;
	font-size: 0.9em;
	letter-spacing: 0.05em;
}

/* Projects Header Section */
.projects-header {
	background: linear-gradient(180deg, var(--bg-darker) 0%, #202640 100%);
	padding: 4.5em 0 2.5em;
	text-align: center;
}

.projects-header .inner {
	max-width: 65em;
	margin: 0 auto;
	padding: 0 3em;
}

.projects-header p {
	font-size: 1.05em;
	color: var(--text-light);
	margin-top: -0.7em;
	opacity: 0.88;
}

/* Enhanced Tiles/Project Cards */
.tiles {
	max-width: 65em;
	margin: 0 auto;
	padding: 0 3em 4em !important;
	gap: 1.2em;
	align-items: stretch;
}

.tiles article {
	position: relative;
	width: calc(33.333% - 0.8em) !important;
	min-height: 18.5em;
	height: 18.5em;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
	background-position: center;
	background-size: cover;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.tiles article::before {
	transition: opacity 0.35s ease;
	background: linear-gradient(180deg, rgba(19, 24, 44, 0.24) 0%, rgba(19, 24, 44, 0.74) 100%) !important;
	opacity: 1 !important;
}

.tiles article::after {
	background-color: rgba(36, 41, 67, 0.2) !important;
}

.tiles article:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.35);
	border-color: rgba(155, 241, 255, 0.4);
}

.tiles article:hover::before {
	opacity: 0.82 !important;
}

.tiles article header {
	transition: var(--transition-smooth);
	width: 100%;
}

.tiles article:hover header {
	transform: translateY(-5px);
}

.tiles article h3 {
	margin-bottom: 0.3em;
	font-size: 1.4em;
}

.tiles article p {
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	opacity: 0.95;
	color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 980px) {
	.tiles {
		padding: 0 2em 3.5em !important;
	}

	.tiles article {
		width: calc(50% - 0.6em) !important;
		height: 17.5em;
	}
}

@media screen and (max-width: 736px) {
	.tiles {
		padding: 0 1.5em 3em !important;
	}

	.tiles article {
		width: 100% !important;
		height: 16.5em;
	}
}

/* Contact Section */
.contact-section {
	background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
	padding: 6em 0;
	border-bottom: none;
}

.contact-section .inner {
	max-width: 65em;
	margin: 0 auto;
	padding: 0 3em;
	text-align: center;
	display: block !important;
}

#contact.contact-section > .inner {
	display: block !important;
}

#contact.contact-section > .inner > :nth-child(2n - 1),
#contact.contact-section > .inner > :nth-child(2n),
#contact.contact-section > .inner > * {
	width: 100% !important;
	padding: 0 !important;
	border-right: 0 !important;
}

.contact-section header.major {
	margin: 0 auto 1.2em;
}

.contact-intro {
	font-size: 1.15em;
	color: var(--text-light);
	max-width: 760px;
	margin: 0 auto 2.4em;
	line-height: 1.85;
	text-wrap: pretty;
}

.contact-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2em;
	margin-top: 2em;
}

.contact-card {
	background: var(--card-bg);
	padding: 2.5em 2em;
	border-radius: 15px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: var(--transition-smooth);
}

.contact-card:hover {
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-8px);
	border-color: var(--accent-color);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-card .contact-method {
	padding-left: 0;
	margin: 0;
	text-align: center;
}

.contact-card .contact-method .icon {
	position: relative;
	font-size: 2em;
	margin-bottom: 1em;
	display: block;
}

.contact-card .contact-method .icon::before {
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.contact-card .contact-method h3 {
	margin-bottom: 0.5em;
	font-size: 1.1em;
}

.contact-card .contact-method a,
.contact-card .contact-method span {
	color: var(--text-light);
	font-size: 0.95em;
}

.contact-card .contact-method a:hover {
	color: var(--accent-color);
}

/* Enhanced Footer */
#footer {
	background: var(--bg-darker);
	padding: 4em 0 2em 0;
}

#footer .inner {
	max-width: 65em;
	margin: 0 auto;
	padding: 0 3em;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 2em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 2em;
}

.footer-brand h3 {
	margin-bottom: 0.3em;
	font-size: 1.3em;
}

.footer-brand p {
	margin: 0;
	opacity: 0.7;
	font-size: 0.9em;
}

.social-icons {
	display: flex;
	gap: 0.5em;
}

.social-icons li {
	padding: 0;
}

.social-icons li a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: var(--card-bg);
	border-radius: 50%;
	transition: var(--transition-smooth);
}

.social-icons li a:hover {
	background: var(--accent-color);
	transform: translateY(-3px);
}

.social-icons li a:hover::before {
	color: var(--bg-dark);
}

#footer .copyright {
	text-align: center;
	opacity: 0.6;
	font-size: 0.85em;
}

/* Logo Styling */
#header .logo {
	font-size: 0.85em;
}

#header .logo strong {
	background: var(--primary-gradient);
	padding: 0 0.4em;
}

/* Button Enhancements */
.button {
	position: relative;
	overflow: hidden;
	transition: var(--transition-smooth);
}

.button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.button:hover::before {
	left: 100%;
}

.button.primary {
	background: var(--primary-gradient);
	background-size: 200% 200%;
	animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* Menu Enhancements */
#menu {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Scroll Animation Classes */
.fade-in {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive Adjustments */
@media screen and (max-width: 980px) {
	.about-content {
		grid-template-columns: 1fr;
		gap: 3em;
	}
	
	.contact-grid {
		grid-template-columns: 1fr;
		max-width: 400px;
		margin-left: auto;
		margin-right: auto;
	}

	.contact-intro {
		max-width: 100%;
	}
	
	.footer-content {
		flex-direction: column;
		text-align: center;
		gap: 2em;
	}
}

@media screen and (max-width: 736px) {
	#banner h1 {
		font-size: 2.5em;
	}

	#banner .actions {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.9em;
		margin-left: 0;
	}

	#banner .actions li {
		padding-left: 0;
		width: 100%;
	}

	#banner .actions .button {
		width: 100%;
		text-align: center;
	}
	
	#banner .tagline {
		font-size: 1.1em;
	}
	
	#banner .intro-text {
		font-size: 1em;
	}
	
	#about .inner,
	#technical-skills .inner,
	.projects-header .inner,
	.contact-section .inner,
	#footer .inner {
		padding: 0 1.5em;
	}
	
	.skills-grid {
		grid-template-columns: 1fr;
	}
	
	.skill-item {
		padding: 0.8em 1em;
	}

	.ai-tools-intro {
		font-size: 0.72em;
		letter-spacing: 0.12em;
	}

	.ai-tools-list li {
		min-width: 104px;
		font-size: 0.68em;
		letter-spacing: 0.06em;
		padding: 0.2em 0.8em 0.1em;
	}

	.ai-main-icon {
		width: 2.6em;
		height: 2.6em;
	}
}

@media screen and (max-width: 480px) {
	#banner h1 {
		font-size: 2em;
	}

	#banner .actions {
		gap: 0.75em;
	}
	
	.contact-card {
		padding: 2em 1.5em;
	}
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}

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

::-webkit-scrollbar-thumb {
	background: linear-gradient(180deg, #6fc3df, #8d82c4);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(180deg, #8d82c4, #ec8d81);
}

/* Selection Color */
::selection {
	background: rgba(155, 241, 255, 0.3);
	color: #fff;
}

/* Page Load Animation */
body.is-preload .fade-in {
	opacity: 0;
	transform: translateY(30px);
}

/* Hover Effects for Project Tiles */
.tiles article {
	cursor: pointer;
}

.tiles article .image img {
	transition: transform 0.5s ease;
}

.tiles article:hover .image img {
	transform: scale(1.1);
}
