html {
	scroll-behavior: smooth;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins';
}

body {
	font-family: Arial, sans-serif;
	background: #fff;
	color: #111;
}

/* Typewriter effect */
#typed {
	font-size: clamp(1.2rem, 5vw, 3.5rem);
	word-wrap: break-word;
	overflow-wrap: anywhere;
	line-height: 1.2;
	font-family: 'Poppins', "Bebas Neue";
	color: #fff;
	border-right: 3px solid #ffffff;
	white-space: nowrap;
	overflow: hidden;
	display: inline-block;
	animation: blink 0.7s infinite;
}

@keyframes blink {
	50% {
		border-color: transparent;
	}
}

/* Navbar */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #000000ae;
	color: #fff;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 8%;
	z-index: 1000;
}

.navbar .logo h1 {
    height:60px;
    width: 180px;
	font-size: 1.8rem;
	margin-bottom: 10px;
	position: relative;
	right: 90px;
	font-family: 'Zalando Sans Expanded', 'Poppins';
	color: #000dff;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 15px;
}

.navbar .nav-links li a {
	text-decoration: none;
	color: #fff;
	font-weight: 500;
	font-size: 18px;
	font-family: 'Poppins';
	transition: 0.3s ease-out;
	padding: 7px 9px 7px 9px;
	border-radius: 7px;
}

.navbar .nav-links li a:hover {
	color: black;
	background-color: rgba(255, 255, 255, 0.823);
}


/* Hero Section */
section.hero {
	position: relative;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	justify-content: center;
	height: 100vh;
	color: #fff;
	text-align: center;
	overflow: hidden;
	background: linear-gradient(-45deg, #2bc7b5, #000000);
	background-size: 400% 400%;
	border: 5px solid white;
	animation: gradient 7s ease infinite;
}

.hero-content {
	max-width: 800px;
	padding: 20px;
	animation: fadeInUp 1.2s ease-out;
}

.hero-content2 {
	max-width: 1000px;
	padding: 20px;
	animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
	font-size: 3.5rem;
	margin-bottom: 15px;
	font-family: 'Bebas Neue', sans-serif;
	color: #fff;
}

.hero-content p {
	font-size: 1.25rem;
	margin-bottom: 25px;
	font-family: 'Poppins';
}

.hero-content2 h1 {
	font-size: 5rem;
	margin-bottom: 15px;
	font-family: 'Merriweather', serif;
	color: #a2ffd0;
}

.tagline {
	font-size: 1rem;
	font-style: italic;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #ddd;
}

/* Buttons */
.hero-buttons {
	display: flex;
	gap: 15px;
	justify-content: center;
}

.btn-primary,
.btn-secondary {
	padding: 12px 24px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	transition: 0.3s;
}

.btn-primary {
	background: #1a9688;
	border: 2px solid #fff;
	color: #fff;
}

.btn-primary:hover {
	background: #157b6c;
}

.btn-secondary {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
}

.btn-secondary:hover {
	background: #fff;
	color: #111;
	font-size: 1.1rem;
}

/* Stamp + Bearing */
.stamp {
	position: absolute;
	top: 200px;
	left: 30px;
	width: 200px;
	transform: rotate(-10deg);
	z-index: 100;
}

.stamp img {
	width: 400px;
	animation: fadeInUp 1.2s ease-out;
}

.mb {
	position: absolute;
	top: 190px;
	right: 50px;
	animation: fadeInUp 1.2s ease-out;
}

.mb img {
	width: 350px;
	animation: spin 5s linear infinite;
}

/* Divider */
.section-divider2 {
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 1.5px;
}

.section-divider {
	border: none;
	height: 1.5px;
	background: #000000;
	width: 70%;
}

/* Products Section */
.products {
	padding: 100px 8%;
	background: #f4f4f4;
	text-align: center;
}

.products h2 {
	font-size: 2.5rem;
	margin-bottom: 40px;
}

.product-grid {
	display: flex;
	gap: 30px;
	justify-content: center;
	flex-wrap: wrap;
}

.product-box {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 12px;
	width: 250px;
	padding: 20px;
	cursor: pointer;
	transition: 0.3s;
}

.product-box:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-box img {
	width: 100%;
	height: 200px;
	object-fit: contain;
	margin-bottom: 15px;
	transition: 0.5s ;
}

.product-box h3 {
	font-size: 1.2rem;
}

.product-box:hover img { 
    transform: scale(1.1); 
    }
    

/* Modal */
.modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.modal-content {
	background: #fff;
	padding: 30px;
	border-radius: 10px;
	width: 400px;
	text-align: center;
	position: relative;
	animation: fadeInUp 0.4s ease;
}

.modal-content h2 {
	margin-bottom: 15px;
}

.close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 1.5rem;
	cursor: pointer;
}

/* About Section */
.about {
	padding: 100px 8%;
	background: #f9f9f9;
}

.about-container {
	display: flex;
	align-items: center;
	gap: 50px;
	justify-content: space-between;
}

.about-text {
	flex: 1;
}

.about-text h2 {
	font-size: 2.8rem;
	margin-bottom: 20px;
	color: #222;
}

.about-text p {
	margin-bottom: 20px;
	line-height: 1.6;
}

.about-image {
	flex: 1;
}

.about-image img {
	width: 100%;
	border-radius: 12px;
}

iframe {
	border-radius: 12px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.75);
	transition: 0.3s ease;
}

iframe:hover {
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0, 0.9);
	transform: translateY(-5px);
}

/*Contact Us*/
.footer {
	background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
	color: #fff;
	padding: 40px 8%;
	font-family: Arial, sans-serif;
	border:5px solid white;
}

.footer-container {
	text-align: center;
	margin-bottom: 20px;
}

.footer-info h3 {
	font-size: 3rem;
	margin-bottom: 20px;
	color: #ffffff;
}

.footer-contact p {
	margin: 5px 0;
	font-size: 1.15rem;
	color: #ffffffa6;
}

.footer-contact address {
	color: #ffffffa6;
}

.footer-contact a {
	color: #ffffffa6;
	text-decoration: none;
	transition: 0.3s;
	align-self: flex-start;
}

.footer-contact a:hover {
	color: #fff;
}

.footer-bottom {
	border-top: 1.5px solid #000000;
	padding-top: 15px;
	text-align: center;
	font-size: 0.99rem;
	color: #aaa;
}

/*Hamburger*/
.hamburger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	z-index: 1100;
	/* stays above nav */
}

.hamburger span {
	width: 25px;
	height: 3px;
	background: #fff;
	border-radius: 2px;
	transition: 0.3s;
}

/* Hamburger animation (turns into X) */
.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* Popup overlay */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 3000;
}

/* Popup content box */
.popup-content {
  background: rgba(255, 255, 255, 0.7);
  padding: 40px 30px;
  border-radius: 12px;
  width: 400px;
  text-align: center;
  color: #0f6c61;
  font-family: 'Poppins',  'sans serif';
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  position: relative;
  animation: fadeInUp 0.4s ease;
}



/* Input fields */
.popup-content input {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
  transition: 0.3s;
}

.popup-content input:focus {
  border-color: #109283;
  outline: none;
  box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

/* Submit button */
.popup-content button {
  background: #109283;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: 0.3s;
}

.popup-content button:hover {
  background: #0f6c61;
}

/* Close (X) icon */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}
.close-popup:hover { color: #000; }

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

/* ===================== MEDIA QUERIES ===================== */
@media (min-width: 10000px) {

	.stamp img,
	.mb img {
		display: none;
	}
}

/* Large desktops (≤1440px) */
@media (max-width: 1440px) {
	.hero-content h1 {
		font-size: 3rem;
	}

	.hero-content2 h1 {
		font-size: 4.2rem;
	}

	.stamp img,
	.mb img {
		display: none;
	}
}

/* Laptops & tablets (≤1024px) */
@media (max-width: 1024px) {
	.navbar {
		padding: 20px 5%;
	}

	.navbar .logo h1 {
		width: 180px;
		right: 0;
		height: 80px;
	}

	.hero-content h1 {
		font-size: 3rem;
	}

	.hero-content p {
		font-size: 1.1rem;
	}

	.hero-content2 h1 {
		font-size: 3.9rem;
	}

	.tagline {
		font-size: 0.9rem;
	}

	.stamp img {
		display: none;
	}

	.mb img {
		display: none;
	}

	.about-container {
		gap: 30px;
	}

	.about-text h2 {
		font-size: 2.2rem;
	}
}

/*<930px*/
@media(max-width: 930px) {
	.about-container {
		flex-direction: column;
		text-align: center;
	}

	.about-image iframe {
		width: 100%;
		height: 300px;
	}
}

/* Tablets & small laptops (≤768px) */
@media (max-width: 768px) {

	/* Navbar */
	.hamburger {
		display: flex;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		background-color: #111111c3;
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		padding: 15px 0;
		gap: 15px;
		text-align: center;
	}

	.nav-links.active {
		display: flex;
	}

	/* Hero */
	.hero-content h1 {
		font-size: 2rem;
	}

	.hero-content p {
		font-size: 1rem;
	}

	.hero-content2 h1 {
		font-size: 3.15rem;
	}

	.tagline {
		font-size: 0.8rem;
	}

	/* Hide stamp + mb before overlap */
	.stamp,
	.mb {
		display: none;
	}

	/* Products */
	.product-grid {
		flex-direction: column;
		align-items: center;
	}

	.product-box {
		width: 90%;
		max-width: 320px;
	}

	/* About */
	.about-container {
		flex-direction: column;
		text-align: center;
	}

	.about-image iframe {
		width: 100% !important;
		height: 300px;
	}

	/* Footer */
	.footer-info h3 {
		font-size: 2rem;
	}

	.footer-contact p,
	.footer-contact a {
		font-size: 1rem;
	}

	.footer-bottom {
		font-size: 0.9rem;
	}
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
	.hero-content h1 {
		font-size: 1.8rem;
	}

	.hero-content p {
		font-size: 0.95rem;
	}

	.hero-content2 h1 {
		font-size: 2.65rem;
	}

	.tagline {
		font-size: 0.75rem;
	}

	.btn-secondary {
		padding: 10px 18px;
		font-size: 0.85rem;
	}

	.products h2 {
		font-size: 2rem;
	}

	.about-text h2 {
		font-size: 1.8rem;
	}

	.about-text p {
		font-size: 0.95rem;
	}
}

/* Very small phones (≤320px) */
@media (max-width: 320px) {
	.navbar {
		padding: 10px 3%;
	}

	.navbar .logo h1 {
		width: 140px;
		height: 80px;
	}

	.hero-content h1 {
		font-size: 1.5rem;
	}

	.hero-content p {
		font-size: 0.85rem;
	}

	.hero-content2 h1 {
		font-size: 2.25rem;
	}

	.tagline {
		font-size: 0.65rem;
	}

	.btn-primary,
	.btn-secondary {
		padding: 8px 14px;
		font-size: 0.75rem;
	}

	.footer-info h3 {
		font-size: 1.6rem;
	}

	.footer-contact p,
	.footer-contact a {
		font-size: 0.85rem;
	}

	.footer-bottom {
		font-size: 0.75rem;
	}
}