/* Bipin Vayalu Portfolio — style.css (React site design, static HTML5) */

/* === Design Tokens (from React index.css) === */
:root {
	--primary: #F36C3F;
	--primary-hover: #e05a2d;
	--primary-btn: #BF4820;
	--primary-btn-hover: #A83D1A;
	--primary-light: #f5994e;
	--primary-fg: #fafafa;
	--primary-bg: rgba(243,108,63,0.1);
	--bg: #ffffff;
	--fg: #0b1120;
	--card: #ffffff;
	--card-fg: #0b1120;
	--muted: #f5f5f7;
	--muted-fg: #64748b;
	--border: #e2e8f0;
	--secondary: #fdf4f0;
	--secondary-fg: #0b1120;
	--radius: 0.5rem;
	--radius-lg: 0.875rem;
	--font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-mono: 'Roboto Mono', 'Consolas', monospace;
	--shadow-subtle: 0 4px 20px -4px rgba(100,116,139,0.1);
	--shadow-lg: 0 10px 30px -10px rgba(243,108,63,0.3);
	--transition: color 0.3s cubic-bezier(0.4,0,0.2,1), background-color 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1), border-color 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	font-family: var(--font);
	color: var(--fg);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--fg); }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.25rem; }
@media (min-width: 768px) {
	h1 { font-size: 3rem; }
	h2 { font-size: 2.25rem; }
}
.text-muted { color: var(--muted-fg); }
.text-primary { color: var(--primary); font-weight: 500; }
.text-center { text-align: center; }

/* === Buttons === */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 32px;
	font-size: 0.9375rem;
	font-weight: 500;
	border-radius: var(--radius);
	transition: var(--transition);
	white-space: nowrap;
}
.btn-primary {
	background: var(--primary);
	color: #ffffff;
	box-shadow: var(--shadow-lg);
}
.btn-primary:hover {
	background: var(--primary-hover);
	box-shadow: 0 12px 35px -10px rgba(243,108,63,0.4);
	transform: translateY(-1px);
}
.btn-outline {
	border: 1px solid var(--primary);
	color: var(--primary);
	background: transparent;
}
.btn-outline:hover {
	background: var(--primary);
	color: var(--primary-fg);
}
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* === Badge === */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 9999px;
	transition: var(--transition);
}
.badge-secondary { background: var(--secondary); color: var(--secondary-fg); }
.badge-secondary:hover { background: var(--primary); color: var(--primary-fg); }
.badge-outline { border: 1px solid rgba(243,108,63,0.2); color: var(--primary); background: transparent; }
.badge-primary { background: var(--primary); color: white; }
.badge-type { background: var(--primary-bg); color: var(--primary); }

/* === Card === */
.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: var(--transition);
}
.card:hover {
	box-shadow: 0 8px 30px -8px rgba(100,116,139,0.15);
	border-color: rgba(243,108,63,0.2);
}
.card-body { padding: 24px; }

/* === SVG Icons (inline) === */
.icon {
	width: 20px; height: 20px;
	display: inline-block; vertical-align: middle;
	fill: none; stroke: currentColor;
	stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

/* === Navigation === */
.nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), background 0.3s cubic-bezier(0.4,0,0.2,1);
	background: transparent;
	transform: translateY(-100%);
}
.nav.visible { transform: translateY(0); }
.nav.scrolled {
	background: rgba(255,255,255,0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}
.nav-inner {
	max-width: 1200px; margin: 0 auto; padding: 16px 24px;
	display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
	font-size: 1.25rem; font-weight: 700; color: var(--fg);
	cursor: pointer; transition: color 0.3s;
}
.nav-brand:hover { color: var(--primary); }
.nav-links {
	display: none; align-items: center; gap: 32px;
}
.nav-links a, .nav-links button {
	color: var(--muted-fg); font-weight: 500; font-size: 0.9375rem; transition: color 0.3s;
}
.nav-links a:hover, .nav-links button:hover { color: var(--primary); }
.nav-links a.btn-primary {
	color: var(--primary-fg); background: var(--primary); box-shadow: var(--shadow-lg);
}
.nav-links a.btn-primary:hover {
	color: var(--primary-fg); background: var(--primary-hover);
}
@media (min-width: 768px) {
	.nav-links { display: flex; }
	.nav-toggle { display: none !important; }
}

.nav-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--radius); color: var(--fg);
}
.nav-toggle:hover { background: var(--muted); }

.mobile-menu {
	display: none; flex-direction: column; gap: 8px; padding: 16px 0;
	border-top: 1px solid var(--border);
	background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
}
.mobile-menu.active { display: flex; }
.mobile-menu a, .mobile-menu button {
	color: var(--muted-fg); font-weight: 500; font-size: 0.9375rem;
	padding: 8px 0; text-align: left; transition: color 0.3s;
}
.mobile-menu a:hover, .mobile-menu button:hover { color: var(--primary); }
.mobile-menu a.btn-primary {
	color: var(--primary-fg); background: var(--primary);
	padding: 10px 20px; box-shadow: none;
}
.mobile-menu a.btn-primary:hover {
	color: var(--primary-fg); background: var(--primary-hover);
	transform: none;
}
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* === Hero === */
.hero {
	min-height: 100vh; display: flex; align-items: center; justify-content: center;
	padding: 0 24px;
	background: linear-gradient(135deg, var(--bg), var(--bg), rgba(243,108,63,0.03));
}
@media (min-width: 768px) { .hero { padding: 80px 24px 60px; } }
.hero-content {
	max-width: 520px; text-align: center;
	display: flex; flex-direction: column; align-items: center;
	min-height: 100dvh; padding: 32px 0;
}
@media (min-width: 768px) {
	.hero-content { min-height: auto; padding: 0; display: block; }
}
.hero-photo {
	width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
	margin: auto auto 16px;
	box-shadow: 0 20px 60px -15px rgba(0,0,0,0.2);
}
@media (min-width: 768px) { .hero-photo { width: 144px; height: 144px; margin: 0 auto 48px; } }
.hero h1 { margin-bottom: 16px; }
.hero-tagline {
	font-size: 1.125rem; color: #374151; font-weight: 300;
	line-height: 1.7; margin-bottom: auto;
}
.hero-subtitle {
	display: block; margin-top: 8px; font-size: 0.9375rem; font-style: italic;
	color: var(--muted-fg); opacity: 0.85;
}
.hero-content > div:last-child { margin-bottom: auto; }
@media (min-width: 768px) {
	.hero-tagline { font-size: 1.25rem; margin-bottom: 48px; }
	.hero-subtitle { font-size: 1.0625rem; }
	.hero-content > div:last-child { margin-bottom: 0; }
	.hero-photo { margin-top: 0; }
}

/* === Section Common === */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header p {
	font-size: 1.125rem; color: var(--muted-fg);
	max-width: 640px; margin: 16px auto 0;
}

/* === Experience Timeline === */
.timeline { position: relative; padding-left: 40px; }
@media (min-width: 768px) { .timeline { padding-left: 64px; } }
.timeline::before {
	content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
	width: 2px; background: rgba(243,108,63,0.2);
}
@media (min-width: 768px) { .timeline::before { left: 32px; } }

.timeline-item { position: relative; margin-bottom: 48px; }
.timeline-dot {
	position: absolute; left: -31px; top: 28px;
	width: 16px; height: 16px; border-radius: 50%;
	border: 3px solid rgba(243,108,63,0.3);
	background: var(--bg); z-index: 1;
}
@media (min-width: 768px) { .timeline-dot { left: -39px; } }
.timeline-dot.current {
	background: var(--primary); border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(243,108,63,0.2);
}
.timeline-dot.current::after {
	content: ''; position: absolute; inset: 2px; background: white; border-radius: 50%;
}

.timeline-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.timeline-card:hover { box-shadow: var(--shadow-subtle); border-color: rgba(243,108,63,0.2); }

.timeline-header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
@media (min-width: 640px) {
	.timeline-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.timeline-position { font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.timeline-company { color: var(--primary); font-weight: 500; }
.timeline-location { font-size: 0.875rem; color: var(--muted-fg); }
.timeline-duration {
	font-size: 0.875rem; color: var(--muted-fg);
	font-family: var(--font-mono); white-space: nowrap; margin-top: 8px;
}
@media (min-width: 640px) { .timeline-duration { margin-top: 0; } }
.timeline-meta { display: flex; align-items: center; gap: 8px; }
.timeline-desc { color: var(--muted-fg); line-height: 1.7; margin-bottom: 16px; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hidden-experience { display: none; }
.hidden-experience.visible { display: block; }
.toggle-btn-wrap { text-align: center; margin-top: 48px; }

/* === Projects Grid === */
.projects-bg {
	background: linear-gradient(135deg, rgba(243,108,63,0.03), var(--bg), rgba(243,108,63,0.06));
}
.projects-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.project-card:hover { box-shadow: 0 8px 30px -8px rgba(100,116,139,0.15); border-color: rgba(243,108,63,0.2); }
.project-header { padding: 24px 24px 0; }
.project-header-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.project-name { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.project-desc { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; margin-top: 12px; }
.project-body { padding: 16px 24px 24px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* === About === */
.about-bg { background: rgba(245,245,247,0.3); }
.about-content { max-width: 900px; margin: 0 auto; }
.about-bio { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.about-bio p { color: var(--muted-fg); line-height: 1.7; margin-bottom: 16px; font-size: 1.0625rem; }
.about-bio p:last-child { margin-bottom: 0; }
.about-cards-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .about-cards-grid { grid-template-columns: repeat(3, 1fr); } }
.about-card {
	background: var(--card); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 24px; text-align: center;
	transition: box-shadow 0.3s;
}
.about-card:hover { box-shadow: 0 8px 30px -8px rgba(100,116,139,0.15); }
.about-card-icon {
	width: 48px; height: 48px; background: var(--primary-bg);
	border-radius: var(--radius); display: flex; align-items: center;
	justify-content: center; color: var(--primary); margin: 0 auto 16px;
}
.about-card h4 { font-size: 1.125rem; margin-bottom: 8px; }
.about-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
.about-skills { margin-top: 48px; text-align: center; }
.about-skills h3 { font-size: 1.25rem; margin-bottom: 24px; }
.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.skill-badge {
	padding: 8px 16px; font-size: 0.875rem; background: var(--secondary);
	color: var(--secondary-fg); border-radius: 9999px; font-weight: 500;
	transition: var(--transition); cursor: default;
}
.skill-badge:hover { background: var(--primary); color: var(--primary-fg); }

/* === Certifications === */
.cert-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .cert-grid { grid-template-columns: repeat(2, 1fr); } }
.cert-card {
	border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	display: flex; flex-direction: column;
}
.cert-card:hover { box-shadow: 0 8px 30px -8px rgba(100,116,139,0.15); transform: translateY(-2px); }
.cert-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cert-card-header h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.cert-platform { color: var(--primary); font-weight: 500; font-size: 0.9375rem; margin-top: 4px; }
.cert-date { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted-fg); white-space: nowrap; }
.cert-desc { color: var(--muted-fg); font-size: 0.9375rem; line-height: 1.6; margin: 12px 0 0; }
.cert-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cert-verify { color: var(--primary); font-weight: 500; font-size: 0.875rem; margin-left: auto; transition: opacity 0.3s; white-space: nowrap; }
.cert-verify:hover { opacity: 0.7; }

/* === Contact === */
.contact { padding: 64px 0; }
.contact-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 32px; }

/* === Footer === */
.footer {
	background: rgba(245,245,247,0.3); border-top: 1px solid var(--border); padding: 32px 0;
}
.footer-bottom {
	text-align: center;
}
.footer-made {
	display: flex; align-items: center; justify-content: center;
	gap: 8px; font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 8px;
}
.footer-copy { font-size: 0.75rem; color: var(--muted-fg); }

/* === Animations === */
[data-animate] {
	opacity: 0; transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	will-change: transform, opacity;
}
[data-animate].animated { opacity: 1; transform: translateY(0); will-change: auto; }

/* === Responsive === */
@media (max-width: 640px) {
	.section { padding: 60px 0; }
	.section-header { margin-bottom: 40px; }
	.about-highlights { flex-direction: column; gap: 12px; }
	.contact-buttons { flex-direction: column; align-items: center; }
	.contact-buttons .btn { width: 100%; max-width: 280px; }
}
