* {
	box-sizing: border-box;
}

::selection {
	background: #2c3e50;
	color: #ffffff;
}

::-moz-selection {
	background: #2c3e50;
	color: #ffffff;
}

html {
	scroll-behavior: smooth;
}

body {
	direction: ltr;
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1a1a1a;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	margin: 0;
	padding: 0;
	background: #e8e8e8;
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image:
		url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.4;
	z-index: 0;
	pointer-events: none;
}

body::after {
	content: '';
	position: fixed;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent 48%, rgba(0,0,0,0.02) 50%, transparent 52%);
	background-size: 40px 40px;
	animation: diagonalShift 90s linear infinite;
	z-index: 0;
	pointer-events: none;
}

@keyframes diagonalShift {
	0% {
		transform: translate(0, 0);
	}
	100% {
		transform: translate(40px, 40px);
	}
}

/* Utility Classes */
.float-left {
	float: left;
	margin-right: 20px;
	margin-bottom: 20px;
}

/* Button Styles */
.btn {
	display: inline-block;
	padding: 12px 32px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	border-radius: 6px;
	cursor: pointer;
	border: none;
	letter-spacing: 0.3px;
	transition: all 0.2s ease;
}

.btn-secondary {
	background: #2c3e50;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
	background: #1a252f;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: #ffffff;
}

.btn-primary {
	background: #2c3e50;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
	background: #1a252f;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button {
	font-family: inherit;
}

/* Form Elements */
form {
	max-width: 500px;
	margin: 0 auto;
}

input, textarea {
	font-family: inherit;
	font-size: 0.95rem;
	border: 2px solid #e8ecef;
	background: #f8f9fa;
	padding: 12px 16px;
	margin: 5px 0;
	transition: all 0.3s ease;
	width: 100%;
	border-radius: 6px;
}

input:focus, textarea:focus {
	border-color: #2c3e50;
	background: #ffffff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.08);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: 'Helvetica Neue', Arial, sans-serif;
	font-weight: 600;
	line-height: 1.3;
	color: #1a252f;
	margin-bottom: 1.2rem;
	letter-spacing: -0.02em;
}

h1 {
	font-size: 2.5rem;
	font-weight: 700;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

/* Content Styling */
.portfolio-content {
	line-height: 1.8;
	color: #4a5568;
	font-size: 1.05rem;
}

.portfolio-content p {
	margin-bottom: 1.5rem;
}

.portfolio-content ul {
	margin-bottom: 1.5rem;
}

.portfolio-content li {
	margin-bottom: 0.5rem;
}

.portfolio-content a {
	text-decoration: none;
	border-bottom: 2px solid #e8ecef;
	transition: all 0.2s ease;
}

.portfolio-content a:hover {
	color: #1a252f;
	border-bottom-color: #2c3e50;
}

.navbar-brand {
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
	color: #1a252f;
	transition: all 0.2s ease;
}

.navbar-brand:hover {
	color: #2c3e50;
}

.navbar {
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 1.5rem 0;
}

.navbar-container {
}

@media (max-width: 768px) {
	.navbar-container {
		padding: 15px 20px !important;
	}
}

.nav-item {
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.2s ease;
}

.nav-item a {
	color: #4a5568;
	text-decoration: none;
	transition: all 0.2s ease;
}

.nav-item a:hover {
	color: #1a252f;
}

.navbar-toggler {
	border: 0;
	padding: 0.5rem;
}

.navbar-toggler-right {
	right: 0rem;
}

.navbar-toggler-left {
	left: 0rem;
}

.portfolio-img {
	width: 100%;
	max-height: 340px;
	display: block;
	object-fit: cover;
	border-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.portfolio-img:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.project-img {
	width: 100%;
	display: block;
	object-fit: cover;
	border-radius: 8px;
}

/* Image Hover Effect */

.hovereffect {
	width: 100%;
  height: 100%;
  float: left;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.hovereffect .overlay {
	width: 100%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  top: 0;
  left: 0;
}

.hovereffect .overlay-text {
	font-size: 1.3rem;
	font-family: 'iranyekan', 'Crimson Text', sans-serif;
	font-weight: 300;
	color: #000;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 100%;
	-webkit-transform: translate(-50%,-50%);
	-ms-transform: translate(-50%,-50%);
	transform: translate(-50%,-50%);
	opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
}

.hovereffect:hover .overlay-text {
	opacity: 1;
  filter: alpha(opacity=100);
}

.hovereffect img {
  display: block;
  position: relative;
  max-width: none;
	width: 100%;
	height: 100%;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hovereffect:hover img {
  opacity: 0;
  filter: alpha(opacity=0);
}
.page-nav {
	width: 50%;
	margin: 0 auto;
	text-align: center;
}
.page-nav a,span {
	font-size: 1.3rem;
	font-family: 'iranyekan', 'Crimson Text', sans-serif;
	font-weight: 300;
	margin: 0 10px;
	color: #000;
}



.modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(3px);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Modal Content */
.modal-content {
	background-color: #ffffff;
	margin: 5% auto;
	padding: 0;
	border: none;
	width: 90%;
	max-width: 500px;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.interest-modal {
	padding: 45px 40px;
}

.modal-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a252f;
	margin-bottom: 12px;
	margin-top: 0;
	letter-spacing: -0.02em;
}

.modal-description {
	color: #4a5568;
	font-size: 1.05rem;
	line-height: 1.65;
	margin-bottom: 32px;
}

/* The Close Button */
.close {
	color: #999;
	float: right;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	margin: -10px -5px 0 0;
	transition: all 0.2s ease;
}

.close:hover,
.close:focus {
	color: #333;
	text-decoration: none;
	cursor: pointer;
}

/* Form Styling */
.interest-form .form-group {
	margin-bottom: 20px;
}

.interest-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: #444;
	margin-bottom: 8px;
}

.interest-form input,
.interest-form textarea {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e8ecef;
	border-radius: 8px;
	font-size: 0.98rem;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: inherit;
	background-color: #f8f9fa;
}

.interest-form input:focus,
.interest-form textarea:focus {
	border-color: #2c3e50;
	background-color: #fff;
	outline: none;
	box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.08);
}

.interest-form textarea {
	resize: vertical;
	min-height: 80px;
}

.submit-btn {
	width: 100%;
	padding: 16px;
	background-color: #2c3e50;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	margin-top: 12px;
	letter-spacing: 0.3px;
}

.submit-btn:hover {
	background-color: #1a252f;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

@media (max-width: 600px) {
	.interest-modal {
		padding: 30px 25px;
	}

	.modal-title {
		font-size: 1.5rem;
	}
}


hr.style-two {
	border: 0;
	height: 2px;
	background: linear-gradient(to right,
		rgba(44, 62, 80, 0),
		rgba(44, 62, 80, 0.15),
		rgba(44, 62, 80, 0)
	);
	margin: 50px 0;
}


/* Slider */


.my-gallery {
  width: 100%;
  direction: ltr;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 50px 0;
  flex-wrap: wrap;
}

.my-gallery img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.my-gallery img:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.my-gallery figure {
  display: block;
  margin: 0;
  flex: 0 0 calc(50% - 6px);
  max-width: calc(50% - 6px);
  cursor: pointer;
}

.my-gallery figcaption {
  display: none;
}

@media (max-width: 768px) {
  .my-gallery figure {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Hero Cover Section */
.hero-cover {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
  padding: 40px;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.95;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  font-size: 2rem;
  line-height: 1;
}

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

.content-section {
  background: #ffffff;
  padding: 80px 40px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.content-section .portfolio-content {
  padding: 0;
  max-width: 100%;
}

@media (max-width: 768px) {
  .content-section {
    padding: 60px 24px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-overlay {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}
