/* 
   Frontend Developer Portfolio
   Custom CSS Styles
*/

:root {
	--primary-color: #034cb7;
	--secondary-color: #3f37c9;
	--accent-color: #ffc107;
	--dark-color: #212529;
	--light-color: #f8f9fa;
	--gray-color: #6c757d;
	--success-color: #4bb543;
	--sidebar-width: 280px;
	--transition-speed: 0.3s;
	--border-radius: 10px;
}

/* General Styles */
body {
	font-family: "Poppins", sans-serif;
	color: var(--dark-color);
	background-color: #f8f9fa;
	overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
}

h2 {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-color);
	text-align: center;
	position: relative;
	margin-bottom: 40px;
}

h3 {
	font-size: 2rem;
	font-weight: 600;
	color: var(--secondary-color);
	margin-bottom: 20px;
	text-transform: uppercase;
	border-left: 5px solid var(--accent-color);
	padding-left: 15px;
}

h4 {
	color: var(--primary-color);
}

.section-title {
	position: relative;
	margin-bottom: 40px;
	padding-bottom: 8px;
	text-align: center;
	font-size: 2.5rem;
	background-color: #f8f9fa;
}

.section-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: 4px;
	background-color: #ced4da;
	border-radius: 2px;
}

.highlight {
	color: var(--accent-color);
}

/* Sidebar Styles */
.sidebar-wrapper {
	position: fixed;
	height: 100vh;
	width: var(--sidebar-width);
	overflow-y: auto;
	background-color: white;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	transition: all var(--transition-speed);
}

.sidebar {
	padding: 30px 20px;
}

.profile-img-container {
	width: 180px;
	height: 180px;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
	border: 5px solid var(--primary-color);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dev-name {
	margin-top: 20px;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--primary-color); /* Ensure accessible color */
}

.dev-title {
	color: var(--gray-color);
	font-size: 1.1rem;
	margin-bottom: 20px;
}

.social-icons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 30px;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--light-color);
	color: var(--primary-color);
	font-size: 1.2rem;
	transition: all var(--transition-speed);
}

.social-icon:hover {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-3px);
}

.skills-section,
.contact-section {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.skills-section .section-title {
	text-align: left;
	font-size: 1.5rem;
	margin-bottom: 20px;
	padding-bottom: 10px;
}

.skills-section .section-title::after {
	left: 0;
	transform: none;
	width: 50px;
}

.skill-item {
	margin-bottom: 15px;
}

.skill-name {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.progress {
	height: 8px;
	background-color: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
}

.progress-bar {
	background-color: var(--primary-color);
	transition: width 1s ease-in-out;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.contact-item i {
	margin-right: 10px;
	color: var(--primary-color);
	font-size: 1.1rem;
}

.download-cv {
	margin-top: 30px;
	text-align: center;
}

.download-cv .btn {
	padding: 10px 25px;
	border-radius: 30px;
	font-weight: 500;
	transition: all var(--transition-speed);
}

.download-cv .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Main Content Styles */
.main-content-wrapper {
	margin-left: var(--sidebar-width);
	min-height: 100vh;
	width: calc(100% - var(--sidebar-width));
	float: right;
}

/* Navigation Bar Styles */
.navbar {
	padding: 20px 30px;
	background-color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: sticky;
	top: 0;
	z-index: 999;
	transition: all var(--transition-speed);
}

.navbar-brand {
	font-weight: 700;
	font-size: 1.8rem;
	color: var(--primary-color);
}

.navbar-nav .nav-item {
	margin-left: 10px;
}

.navbar-nav .nav-link {
	padding: 8px 15px;
	border-radius: 5px;
	font-weight: 500;
	transition: all var(--transition-speed);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
	color: var(--primary-color);
	background-color: rgba(67, 97, 238, 0.1);
}

/* Content Container */
.content-container {
	padding: 30px 40px;
	background-color: rgba(255, 255, 255, 0.8); /* Transparent background */
	border-radius: var(--border-radius);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero-section {
	margin-top: 20px; /* Add gap from the top */
	padding: 50px 30px;
	text-align: center;
	background-color: #ffffff38;
	border-radius: var(--border-radius);
	margin-bottom: 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: all var(--transition-speed);
}

.hero-section:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-title {
	font-size: 3.5rem;
	margin-bottom: 15px;
	animation: fadeInDown 1s;
}

.hero-subtitle {
	font-size: 1.8rem;
	color: var(--gray-color);
	margin-bottom: 20px;
	animation: fadeInUp 1s;
}

.hero-description {
	max-width: 700px;
	margin: 0 auto 30px;
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--gray-color);
	animation: fadeIn 1.5s;
}

.hero-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
	animation: fadeIn 2s;
}

.hero-buttons .btn {
	padding: 12px 30px;
	border-radius: 30px;
	font-weight: 500;
	transition: all var(--transition-speed);
	color: black; /* Ensure text is accessible */
	background-color: var(--accent-color); /* Updated button color */
	border-color: darkgoldenrod;
}

.hero-buttons .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	color: white;
	background-color: #495057;
}

.hero-buttons .btn.btn-outline-primary {
	color: var(--accent-color);
	background-color: transparent;
	border: 2px solid var(--accent-color);
}

.hero-buttons .btn.btn-outline-primary:hover {
	color: black;
	background-color: var(--accent-color);
}

/* About Section */
.about-section {
	padding: 80px 0;
	margin-bottom: 50px;
}

.about-content {
	max-width: 900px;
	margin: 0 auto;
	font-size: 1.1rem;
	line-height: 1.8;
	background-color: white;
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: all var(--transition-speed);
}

.about-content:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content p {
	margin-bottom: 20px;
}

/* Projects Section */
.projects-section {
	padding: 80px 0;
	margin-bottom: 50px;
}

.project-card {
	background-color: white;
	border-radius: var(--border-radius);
	overflow: hidden;
	margin-bottom: 50px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	transition: all var(--transition-speed);
	padding: 1.5rem;
}

.project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.project-info {
	padding: 30px;
}

.project-title {
	font-size: 1.8rem;
	margin-bottom: 15px;
	color: var(--dark-color);
}

.project-description {
	margin-bottom: 20px;
	color: var(--gray-color);
	line-height: 1.7;
}

.project-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.tech-tag {
	padding: 5px 15px;
	background-color: rgba(67, 97, 238, 0.1);
	color: var(--primary-color);
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
}

.project-links {
	display: flex;
	gap: 15px;
}

/* Swiper Styles for Projects */
.project-swiper {
	width: 100%;
	height: 300px;
	border-radius: var(--border-radius);
}

.project-swiper .swiper-slide {
	width: 100%;
	height: 100%;
}

.project-swiper .swiper-button-next,
.project-swiper .swiper-button-prev {
	color: var(--primary-color);
}

.project-swiper .swiper-pagination-bullet-active {
	background-color: var(--primary-color);
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
	bottom: -4px !important;
}

@media (min-width: 992px) {
	.project-card .row {
		flex-direction: row;
	}
	.project-card .col-md-6,
	.project-card .col-md-6:first-child,
	.project-card .col-md-6:last-child {
		width: 50%;
		max-width: 50%;
		display: block;
	}
	.project-card .project-img {
		border-radius: var(--border-radius) 0 0 var(--border-radius) !important;
	}
	.project-card .project-info {
		padding: 30px;
	}
}

.project-card .col-md-12 {
	width: 100%;
}

/* Certifications Section */
.certifications-section {
	padding: 80px 0;
	margin-bottom: 50px;
}

.education-item {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.education-title {
	font-size: 1.8rem;
	margin-bottom: 10px;
	color: var(--dark-color);
}

.certifications-title {
	font-size: 1.8rem;
	margin-bottom: 30px;
	color: var(--dark-color);
}

.certification-item {
	background-color: white;
	border-radius: var(--border-radius);
	padding: 20px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
	transition: all var(--transition-speed);
}

.certification-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cert-name {
	font-size: 1.3rem;
	margin-bottom: 10px;
	color: var(--dark-color);
}

.cert-issuer {
	color: var(--gray-color);
	margin-bottom: 5px;
}

.cert-date {
	font-size: 0.95rem;
	color: var(--gray-color);
}

/* Testimonials Section */
.testimonials-section {
	padding: 80px 0;
	margin-bottom: 50px;
}

.testimonial-card {
	background-color: white;
	border-radius: var(--border-radius);
	padding: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	height: 100%;
	transition: all var(--transition-speed);
}

.testimonial-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quote-icon {
	font-size: 2rem;
	color: var(--primary-color);
	opacity: 0.3;
	margin-bottom: 15px;
}

.testimonial-text {
	font-size: 0.9rem;
	line-height: 1.4;
	color: var(--gray-color);
	margin-bottom: 20px;
}

.testimonial-author {
	display: flex;
	align-items: center;
}

.testimonial-img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 15px;
}

.author-name {
	font-size: 1.1rem;
	margin-bottom: 5px;
}

.author-position {
	font-size: 0.9rem;
	color: var(--gray-color);
	margin: 0;
}

/* Swiper Styles for Testimonials */
.testimonial-swiper {
	width: 100%;
	padding-bottom: 50px;
}

.testimonial-swiper .swiper-slide {
	height: auto;
}

.testimonial-swiper .swiper-pagination-bullet-active {
	background-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
	padding: 80px 0;
	margin-bottom: 50px;
}

.contact-info {
	margin-bottom: 30px;
}

.contact-info p {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 30px;
}

.contact-details {
	margin-bottom: 30px;
}

.contact-form .form-control {
	padding: 12px 20px;
	border-radius: 8px;
	border: 1px solid #ced4da;
	margin-bottom: 20px;
}

.contact-form .form-control:focus {
	box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.25);
	border-color: var(--primary-color);
}

.contact-form textarea.form-control {
	min-height: 150px;
}

.contact-form .btn {
	padding: 12px 30px;
	border-radius: 8px;
	font-weight: 500;
	transition: all var(--transition-speed);
}

.contact-form .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
	background-color: white;
	padding: 30px 0;
	text-align: center;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer p {
	margin: 0;
	color: var(--gray-color);
}

/* Shadow Box Styles */
.shadow-box {
	background-color: white;
	border-radius: var(--border-radius);
	padding: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
	margin-bottom: 30px;
	transition: all var(--transition-speed);
}

.shadow-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Image Header Styles */
.image-header {
	width: 100%;
	height: 400px; /* Increased height for better fit */
	background-image: url("../images/headerImg1.jpg"); /* Update with your image path */
	background-size: cover;
	background-position: center;
	border-radius: var(--border-radius); /* Match the design of other sections */
	margin-bottom: 20px; /* Add spacing below the header */
	position: relative;
}

.image-header .overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(
		0,
		0,
		0,
		0.5
	); /* Optional overlay for better text visibility */
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	text-align: center;
	border-radius: var(--border-radius); /* Match the header's border radius */
	flex-direction: column; /* Ensure vertical alignment */
	padding: 20px;
}

.image-header .hero-content {
	text-align: center;
	color: white;
}

.image-header .hero-title {
	font-size: 2.5rem; /* Adjusted font size for better fit */
	font-weight: bold;
	margin-bottom: 10px;
}

.image-header .hero-subtitle {
	font-size: 1.5rem;
	margin-bottom: 15px;
	color: #f8f9fa;
}

.image-header .hero-description {
	font-size: 1.2rem;
	line-height: 1.8;
	margin-bottom: 20px;
	color: #e9ecef;
}

.image-header .hero-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.image-header::after {
	content: "© Fareed Hassan";
	position: absolute;
	bottom: 10px;
	right: 10px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
}

/* .image-header h1,
image-header p {
 display: none; 
} */

/* Accordion Styles */
.accordion-button {
	background-color: var(--light-color);
	color: var(--dark-color);
	font-weight: 500;
}

.accordion-button:not(.collapsed) {
	background-color: var(--primary-color);
	color: white;
}

.accordion-body {
	padding: 15px;
}

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

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

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

/* Responsive Styles */
@media (max-width: 991.98px) {
	:root {
		--sidebar-width: 100%;
	}

	.sidebar-wrapper {
		position: relative;
		height: auto;
		width: 100%;
		box-shadow: none;
	}

	.main-content-wrapper {
		margin-left: 0;
		width: 100%;
		float: none;
	}

	.hero-title {
		font-size: 2.5rem;
	}

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

	/* Override 50% width for project card columns on mobile/tablet */
	.project-card .col-md-6,
	.project-card .col-md-6:first-child,
	.project-card .col-md-6:last-child {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
	}

	/* Ensure project image is full width on mobile/tablet */
	.project-card .project-img {
		width: 100% !important;
		height: auto !important;
		border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
		display: block;
		margin: 0 auto;
	}

	.project-card .row {
		flex-direction: column;
	}
	.project-card .col-md-6,
	.project-card .col-md-12 {
		width: 100% !important;
		max-width: 100% !important;
		display: block;
	}
	.project-card .col-md-6:first-child,
	.project-card .col-md-6:last-child {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
	}
	.project-card .col-md-6 {
		width: 100% !important;
		max-width: 100% !important;
		display: block !important;
	}
	.project-card .project-info {
		width: 100% !important;
		max-width: 100% !important;
		padding: 20px 0 0 0;
		display: block;
	}
	.project-info {
		padding: 20px 0 0 0;
	}
}

@media (max-width: 767.98px) {
	.content-container {
		padding: 20px 15px;
	}

	.hero-section,
	.about-section,
	.projects-section,
	.testimonials-section,
	.contact-section {
		padding: 50px 0;
	}

	.section-title {
		font-size: 2rem;
	}

	.project-card .row {
		flex-direction: column;
	}

	.project-info {
		padding: 20px;
	}

	.project-swiper {
		height: 250px;
	}

	.hero-title {
		font-size: 2rem;
	}

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

	.hero-description {
		font-size: 1rem;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 10px;
	}
	.image-header {
		height: 550px;
	}
}

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

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

	.hero-description {
		font-size: 0.9rem;
	}

	.hero-buttons {
		flex-direction: column;
		gap: 10px;
	}

	.project-swiper {
		height: 200px;
	}
}

/* Show More and Show Less Button Styles */
.skills-section .show-more-btn {
	margin-top: 15px;
	display: block;
	text-align: center;
}

.skills-section .btn {
	padding: 8px 20px;
	border-radius: 20px;
	font-weight: 500;
	transition: all var(--transition-speed);
	color: white;
	background-color: var(--primary-color);
}

.skills-section .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	background-color: var(--secondary-color);
}
