/* ==========================================
   Personal Website Styles - Keat Yang Koay
   ========================================== */

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background-color: #ffffff;
	color: #333;
	line-height: 1.6;
}

/* ==========================================
   Navigation
   ========================================== */
nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
}

nav.scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.nav-links {
	display: flex;
	gap: 40px;
	list-style: none;
}

.nav-links a {
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s ease;
	position: relative;
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #0077b5;
	transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
	width: 100%;
}

/* ==========================================
   Hero Banner
   ========================================== */
.hero-banner {
	position: relative;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	background: linear-gradient(180deg, #0a4d68 0%, #088395 50%, #05bfdb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Ocean Animations - Bubbles */
.bubble {
	position: absolute;
	bottom: -100px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
	border-radius: 50%;
	opacity: 0.6;
	animation: rise linear infinite;
}

@keyframes rise {
	to {
		bottom: 110%;
		transform: translateX(100px);
	}
}

.bubble:nth-child(1) {
	width: 40px;
	height: 40px;
	left: 10%;
	animation-duration: 8s;
	animation-delay: 0s;
}

.bubble:nth-child(2) {
	width: 20px;
	height: 20px;
	left: 20%;
	animation-duration: 6s;
	animation-delay: 2s;
}

.bubble:nth-child(3) {
	width: 50px;
	height: 50px;
	left: 35%;
	animation-duration: 10s;
	animation-delay: 4s;
}

.bubble:nth-child(4) {
	width: 30px;
	height: 30px;
	left: 50%;
	animation-duration: 7s;
	animation-delay: 1s;
}

.bubble:nth-child(5) {
	width: 25px;
	height: 25px;
	left: 65%;
	animation-duration: 9s;
	animation-delay: 3s;
}

.bubble:nth-child(6) {
	width: 35px;
	height: 35px;
	left: 80%;
	animation-duration: 8s;
	animation-delay: 5s;
}

.bubble:nth-child(7) {
	width: 45px;
	height: 45px;
	left: 90%;
	animation-duration: 11s;
	animation-delay: 2s;
}

/* Waves */
.wave {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 200%;
	height: 100px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100" preserveAspectRatio="none"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x;
	animation: wave 10s linear infinite;
}

.wave:nth-child(11) {
	bottom: 0;
	animation-duration: 10s;
	opacity: 0.5;
}

.wave:nth-child(12) {
	bottom: 10px;
	animation-duration: 15s;
	opacity: 0.3;
}

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

/* Hero Content */
.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: white;
	padding: 0 20px;
}

.hero-content h1 {
	font-size: clamp(48px, 8vw, 96px);
	font-weight: 700;
	margin-bottom: 20px;
	letter-spacing: -2px;
	animation: fadeInUp 1s ease-out;
}

.hero-content p {
	font-size: clamp(20px, 3vw, 32px);
	font-weight: 300;
	margin-bottom: 30px;
	animation: fadeInUp 1s ease-out 0.2s;
	animation-fill-mode: both;
}

.linkedin-link {
	display: inline-block;
	margin-top: 20px;
	animation: fadeInUp 1s ease-out 0.4s;
	animation-fill-mode: both;
}

.linkedin-link a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	color: white;
	font-size: 30px;
	transition: all 0.3s ease;
	text-decoration: none;
	backdrop-filter: blur(10px);
}

.linkedin-link a:hover {
	background: #0077b5;
	transform: scale(1.1);
	box-shadow: 0 10px 30px rgba(0, 119, 181, 0.3);
}

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

/* Scroll Indicator */
.scroll-indicator {
	position: absolute;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-size: 14px;
	text-align: center;
	animation: bounce 2s infinite;
	cursor: pointer;
}

.scroll-indicator i {
	display: block;
	font-size: 24px;
	margin-bottom: 10px;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	40% {
		transform: translateX(-50%) translateY(-10px);
	}
	60% {
		transform: translateX(-50%) translateY(-5px);
	}
}

/* ==========================================
   Sections
   ========================================== */
section {
	min-height: 100vh;
	padding: 100px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.section-content {
	max-width: 1200px;
	width: 100%;
}

.section-title {
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	margin-bottom: 40px;
	text-align: center;
	color: #0a4d68;
}

.section-text {
	font-size: 18px;
	line-height: 1.8;
	color: #666;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

/* ==========================================
   Intro Section
   ========================================== */
#intro {
	background-color: #f8f9fa;
}

.intro-container {
	display: flex;
	align-items: center;
	gap: 60px;
	flex-wrap: wrap;
	justify-content: center;
}

.intro-photo {
	flex: 0 0 300px;
}

.intro-photo img {
	width: 300px;
	height: 300px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-photo img:hover {
	transform: scale(1.05);
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

.intro-text {
	flex: 1;
	min-width: 300px;
	max-width: 600px;
}

.resume-button-container {
	margin-top: 30px;
	text-align: center;
}

.resume-button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 35px;
	background: linear-gradient(135deg, #0a4d68 0%, #088395 100%);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	box-shadow: 0 4px 20px rgba(10, 77, 104, 0.3);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.resume-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;
}

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

.resume-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(10, 77, 104, 0.4);
	background: linear-gradient(135deg, #088395 0%, #05bfdb 100%);
}

.resume-button i {
	font-size: 20px;
}

.resume-button span {
	letter-spacing: 0.5px;
}

/* ==========================================
   Experience Section - Timeline
   ========================================== */
#experience {
	background-color: #ffffff;
}

.experience-timeline {
	position: relative;
	max-width: 900px;
	margin: 40px auto 0;
	padding-left: 40px;
}

/* Timeline vertical line */
.experience-timeline::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, #0a4d68 0%, #088395 100%);
}

.experience-card {
	position: relative;
	background: white;
	padding: 35px;
	margin-bottom: 40px;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	overflow: visible;
}

/* Timeline dot */
.experience-card::before {
	content: '';
	position: absolute;
	left: -53px;
	top: 35px;
	width: 16px;
	height: 16px;
	background: #0a4d68;
	border: 4px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(10, 77, 104, 0.2);
	z-index: 1;
}

.experience-card:hover {
	transform: translateX(10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-card:hover::before {
	background: #088395;
	box-shadow: 0 0 0 6px rgba(8, 131, 149, 0.3);
}

.experience-card h3 {
	color: #0a4d68;
	margin-bottom: 5px;
	font-size: 24px;
	font-weight: 600;
}

.experience-card .company {
	color: #088395;
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 8px;
}

.experience-card .duration {
	color: #999;
	font-size: 14px;
	margin-bottom: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.experience-card ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.experience-card ul li {
	color: #666;
	line-height: 1.8;
	margin-bottom: 12px;
	padding-left: 25px;
	position: relative;
}

.experience-card ul li::before {
	content: '▸';
	position: absolute;
	left: 0;
	color: #0a4d68;
	font-weight: bold;
}

/* Role Badge - E-commerce style */
.role-badge {
	position: absolute;
	top: -10px;
	right: 20px;
	padding: 8px 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	border-radius: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transform: rotate(2deg);
	z-index: 10;
	animation: badgePulse 2s ease-in-out infinite;
}

.role-badge.ic {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.role-badge.management {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
}

@keyframes badgePulse {
	0%, 100% {
		transform: rotate(2deg) scale(1);
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	}
	50% {
		transform: rotate(2deg) scale(1.05);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	}
}

/* ==========================================
   Portfolio Section
   ========================================== */
#portfolio {
	background-color: #f8f9fa;
}

.portfolio-placeholder {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.portfolio-item {
	background: white;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
	width: 100%;
	height: 200px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 48px;
}

.portfolio-content {
	padding: 30px;
}

.portfolio-content h3 {
	color: #0a4d68;
	margin-bottom: 15px;
	font-size: 24px;
}

.portfolio-content p {
	color: #666;
	line-height: 1.6;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 768px) {
	.nav-container {
		padding: 15px 20px;
	}
	
	.nav-links {
		gap: 20px;
	}
	
	.nav-links a {
		font-size: 12px;
	}
	
	section {
		padding: 80px 20px;
	}
	
	.experience-timeline {
		padding-left: 30px;
	}
	
	.experience-card::before {
		left: -43px;
	}
	
	.portfolio-placeholder {
		grid-template-columns: 1fr;
	}
}

