:root {
	--app-height: 100vh;
	--safe-area-inset-top: env(safe-area-inset-top, 0px);
	--safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
	--safe-area-inset-left: env(safe-area-inset-left, 0px);
	--safe-area-inset-right: env(safe-area-inset-right, 0px);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	height: 100%;
	width: 100%;
	overflow: hidden;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
	color: #ffffff;
	min-height: var(--app-height);
	overflow-x: hidden;
	overflow-y: auto;
	position: relative;
	-webkit-overflow-scrolling: touch;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 calc(2rem + var(--safe-area-inset-left)) 0 calc(2rem + var(--safe-area-inset-right));
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: rgba(15, 15, 15, 0.9);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: var(--safe-area-inset-top);
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem calc(2rem + var(--safe-area-inset-left)) 1.5rem calc(2rem + var(--safe-area-inset-right));
}

.logo {
	height: 44px;
	width: auto;
}

main {
	padding-top: calc(80px + var(--safe-area-inset-top));
	min-height: var(--app-height);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero {
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

/* Gradient utility class - apply to any element for animated gradient effect */
.gradient {
	background: linear-gradient(90deg, #ffffff, #ffffff, #009CDF, #009CDF, #2563EB, #2563EB, #ffffff, #ffffff);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: gradient-shift 23s ease infinite;
}

@keyframes gradient-shift {
	0%, 100% {
		background-position: 0% center;
	}
	50% {
		background-position: 100% center;
	}
}

.hero h1 {
	font-size: clamp(3rem, 7vw, 4.5rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 2rem;
	max-width: 450px;
	margin-left: auto;
	margin-right: auto;
}

.hero .subtitle {
	font-size: 1.5rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 4rem;
	line-height: 1.4;
	max-width: 350px;
	margin-left: auto;
	margin-right: auto;
}

.hero .description {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 3rem;
	line-height: 1.6;
	max-width: 260px;
	margin-left: auto;
	margin-right: auto;
}

.about-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 calc(2rem + var(--safe-area-inset-left)) 0 calc(2rem + var(--safe-area-inset-right));
	width: 100%;
	flex: 1;
}

.about-content {
	padding: 4rem 0;
	width: 100%;
}

.about-header {
	text-align: center;
	margin-bottom: 3rem;
}

.about-header h2 {
	font-size: 2.5rem;
	font-weight: 700;
	background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 1rem;
}

.about-header p {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.6);
	font-weight: 300;
}

.experience-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-bottom: 4rem;
}

.experience-card {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 2rem;
	text-align: center;
	transition: all 0.3s ease;
}

.experience-card:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.15);
	transform: translateY(-4px);
}

.experience-years {
	font-size: 3rem;
	font-weight: 700;
	background: linear-gradient(135deg, #2563EB, #3B82F6);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	margin-bottom: 0.5rem;
}

.experience-label {
	font-size: 1.1rem;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 0.75rem;
}

.experience-detail {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.5;
}

.companies-section {
	margin-bottom: 3rem;
}

.companies-section h3 {
	text-align: center;
	font-size: 1.4rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 2rem;
}

.companies-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.5rem;
	align-items: center;
}

.company-logo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	padding: 1.5rem 1rem;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	transition: all 0.3s ease;
	color: rgba(255, 255, 255, 0.4);
}

.company-logo:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.7);
	transform: translateY(-2px);
}

.company-logo svg {
	width: 32px;
	height: 32px;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.company-logo:hover svg {
	opacity: 0.9;
}

.company-logo span {
	font-size: 0.85rem;
	font-weight: 500;
	text-align: center;
}

.about-footer {
	text-align: center;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-footer p {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.6;
	max-width: 800px;
	margin: 0 auto;
}

footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem;
	padding-bottom: calc(2rem + var(--safe-area-inset-bottom));
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.3);
	z-index: 100;
}

footer .container {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	flex-wrap: wrap;
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	flex-wrap: nowrap;
	justify-content: flex-start;
}

.footer-links a {
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #ffffff;
}

footer .container > span {
	text-align: left;
	white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
	nav {
		padding: 1rem 2rem;
	}

	.logo {
		height: 36px;
	}

	.hero .subtitle {
		font-size: 1.2rem;
		max-width: 280px;
	}

	/* Fix footer for mobile - prevent overlap */
	footer {
		position: relative;
		margin-top: auto;
		padding: 2rem 2rem calc(2rem + var(--safe-area-inset-bottom)) 2rem;
	}

	main {
		padding-bottom: 0;
	}

	/* About Section Mobile */
	.about-container {
		padding: 0 1rem;
	}

	.about-content {
		padding: 2rem 0;
	}

	.about-header h2 {
		font-size: 2rem;
	}

	.about-header p {
		font-size: 1rem;
	}

	.experience-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		margin-bottom: 3rem;
	}

	.experience-card {
		padding: 1.5rem;
	}

	.experience-years {
		font-size: 2.5rem;
	}

	.companies-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.company-logo {
		padding: 1rem 0.5rem;
	}

	.company-logo svg {
		width: 28px;
		height: 28px;
	}

	.company-logo span {
		font-size: 0.8rem;
	}

	/* About close button mobile */
	.about-close {
		top: 20px;
		right: 20px;
		width: 44px;
		height: 44px;
	}
}

@media (max-width: 480px) {
	nav {
		padding: 1rem;
	}

	.logo {
		height: 32px;
	}

	.container {
		padding: 0 1rem;
	}
	
	.hero .description {
		font-size: 1rem;
		max-width: 240px;
	}
	
	footer .container {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
		flex-wrap: nowrap;
	}

	.footer-links {
		gap: 1rem;
		justify-content: flex-start;
		flex-wrap: wrap;
		order: -1;
	}

	footer {
		font-size: 0.8rem;
	}

	footer .container > span {
		white-space: normal;
	}
}

/* Landscape phone fix */
@media (max-height: 500px) and (orientation: landscape) {
	.hero h1 {
		font-size: clamp(2rem, 6vw, 3.5rem);
	}
	
	.hero .subtitle {
		font-size: 1.1rem;
	}
	
	main {
		padding-top: 90px;
	}
	
	header {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		background: rgba(15, 15, 15, 0.9);
		backdrop-filter: blur(20px);
	}
	
	footer {
		position: relative;
		padding: 2rem 2rem;
	}
	
	nav {
		padding: 1rem 2rem;
	}

	.about-content {
        padding: 4rem 0;
    }
}
