@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
html {
  scroll-behavior: smooth;
}
:root {
  --bg-color: #140c26;
  --primary: #957add;
  --primary-light: #b39aee;
  --text-light: #fff;
  --highlight: #dec568;
  --highlight-light: #f0dea0;
  --button-bg: #e2c85b;
  --button-text: #140c26;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  min-height: 100vh;
  color: #150e25;
  line-height: 1.6;
  overflow-y: auto;
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #140c26;
}

/* Different background colors for each page */
body.profile {
  background-color: #1a1a2e; /* example color */
  color: white; /* adjust text color for contrast */
}

body.about {
  background-color: #283845;
  color: #f0f0f0;
}

body.skills {
  background-color: #0f3460;
  color: #ddd;
}

body.projects {
  background-color: #53354a;
  color: #fff;
}

body.contact {
  background-color: #16213e;
  color: #eee;
}



/* Navigation */
nav {
  width: 100%;
  padding: 10px 5%;
  position: fixed;
  top: -20px;
  left: 0;
  z-index: 1000;
  background-color: #140c26;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin-top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 120px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

#menu-toggle {
  display: none;
}

.hamburger {
  font-size: 30px;
  color: var(--highlight);
  display: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--highlight);
  font-weight: 600;
  font-size: 18px;
  transition: 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

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

/* Home Section */
.home {
  padding: 120px 5% 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.info {
  flex: 1;
  max-width: 600px;
  padding-right: 40px;
}

.info h3 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--highlight);
  margin-bottom: 10px;
}

/* Heading Styles */
.heading {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  color: var(--primary);
  margin: 10px 0;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.info p {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.6;
  margin: 20px 0;
  color: #f0f0f0;
}

.buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  background-color: var(--button-bg);
  color: var(--button-text);
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.btn:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Image Styles */
.image-container {
  flex: 1;
  max-width: 500px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.samuel {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(149, 122, 221, 0.5));
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}

.icons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.icons a {
  font-size: 30px;
  color: var(--highlight);
  transition: 0.3s ease;
}

.icons a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .home-container {
    flex-direction: column;
    text-align: center;
  }
  
  .info {
    padding-right: 0;
    margin-bottom: 40px;
  }
  
  .image-container {
    margin-top: 40px;
    max-width: 400px;
  }
  
  .buttons {
    justify-content: center;
  }
  
  .heading {
    white-space: normal;
    text-overflow: clip;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  #menu-toggle:checked ~ .nav-links {
    right: 0;
  }
  
  .nav-links a {
    font-size: 20px;
  }
  
  .buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .btn {
    min-width: 120px;
  }
  
  .heading {
    font-size: 36px;
  }
}

@media (max-width: 576px) {
  .logo {
    width: 100px;
  }
  
  .buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .icons {
    margin-top: 30px;
  }
  
  .icons a {
    font-size: 24px;
  }
  
  .heading {
    font-size: 28px;
  }
}

/*about section*/

/* General Styles */
:root {
  --primary-color: #957add;
  --secondary-color: #dec568;
  --text-color: #333;
  --bg-color: #f9f9f9;
  --highlight-color: #140c26;
}

* {
  margin: 0;
  padding:120px 5% 80px;;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}


/* About Section */
.about {
  padding: 80px 5%;
  background-color: #fff;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  color: var(--text-color);

}

.about-image {
  flex: 1;
  min-width: 300px;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Remove fixed height */
  display: flex;
  justify-content: center;
  background: #f5f5f5; /* Fallback background */
}

.profile-img {
  width: 100%;
  height: auto;
  max-height: 500px; /* Adjust based on your image */
  object-fit: contain;
  object-position: center top; /* Focus on the top portion */
  display: block;
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.social-icons a {
  font-size: 30px;
  color: var(--highlight);
  transition: 0.3s ease;
}

.social-icons a:hover {
  color: var(--primary);
  transform: translateY(-5px);
}
.footer{
  display: inline;
  position: absolute;
  bottom: 10px;
  color: #00bcd4;
  font-size: 12px;
}
/* For portrait images */
@media (orientation: portrait) {
  .profile-img {
    max-height: 70vh; /* Limits height on mobile portrait */
  }
}

.about-content {
  flex: 1;
  min-width: 300px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .about-container {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .about {
    padding: 60px 5%;
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .profile-img {
    max-height: 60vh;
  }
}

@media (max-width: 576px) {
  .about {
    padding: 50px 15px;
  }
  
  .profile-img {
    max-height: 50vh;
  }
  .about-content {
    text-align: center;
  }
  .social-icons {
    justify-content: center;
    margin-top: 20px;
    bottom: 50px;

  }
  .footer {
    text-align: center;
    width: 100%;
    bottom: 0;
    margin-top: 20px;
  }
}

/* Skills */
*{
	margin-top: 20px;
	padding: 0;
	box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

.container-one{
	position: relative;
	width: 100%;
	min-height: 100vh;
	padding: 30px 10%;
}
.container-one .main-title{
	max-width: 700px;
	margin: 0px auto;
	text-align: center;
	font-family: poppins;
}
.container-one .main-title h1{
	position: relative;
	font-size: 40px;
	color: #957add;
	margin-bottom: 30px;
	display: inline-block;
}
.container-one .main-title h1::before{
	content: '';
	position: absolute;
	width: 100%;
	height: 1px;
	top: 125%;
	left: 0;
	background-color: #957add;
}
.container-one .main-title h1::after{
	content: '';
	position: absolute;
	width: 50%;
	height: 3px;
	background-color: #fff;
	top: calc(125% - 1px);
	left: 50%;
	transform: translateX(-50%);
}
.main-title p{
	color: #fff;
}
.container-one .row{
	width: 100%;
	display: flex;
	justify-content: space-between;
	margin-top: 70px;
}
.row .col{
	flex-basis: 46%;
}
.row .sub-title h2{
	position: relative;
	color: #e9c568;
	font-size: 22px;
	font-family: helvetica;
	display: inline-block;
	margin-bottom: 30px;
}
.row .sub-title h2::before{
	content: '';
	position: absolute;
	width: 50%;
	height: 1px;
	top: 125%;
	left: 0;
	background-color: #fff;
}
.row .sub-title h2::after{
	content: '';
	position: absolute;
	width: 25%;
	height: 3px;
	top: calc(125% - 1px);
	left: 0;
	background-color: #fff;
}
.subject{
	font-size: 18px;
	font-weight: thin;
	color: #fff;
	padding-bottom: 15px;
	text-transform: uppercase;
}
.progress-bar{
	position: relative;
	width: 100%;
	height: 5px;
	background-color: #808080;
	border-radius: 15px;
	margin-bottom: 20px;
}
.progress-bar::after{
	position: absolute;
	content: attr(value);
	top: -35px;
	right: 0;
	color: #fff;
	font-size: 18px;
}
.progress-line{
	position: absolute;
	width: 0%;
	height: 7px;
	background-color: #e9c568;
	border-radius: 15px;
	top: -20px;
	animation: animate 1.5s cubic-bezier(1, 0.2, 0.2, 1) forwards;
}
@keyframes animate{
	100%{
		width: 100%;
	}
}
.progress-line::after{
	content: '';
	position: absolute;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	top: 50%;
	left: 100%;
	transform: translate(-50%, -50%);
	background-color: #e9c568;
}
@media(max-width: 768px){
	.container-one{
		padding: 30px 8%;
	}
}
@media(max-width: 568px){
	.container-one .row{
		flex-direction: column;
    align-items: center;
    padding:0 20px;
    width: 100%;
	}
	.container-one .main-title h1{
		font-size: 36px;
	}
	.container-one .row{
		margin-top: 30px;
	}
	.row .col:nth-child(2){
		margin-top: 20px;
	}
}

/* PROJECTS SECTION */
#projects {
  padding: 40px 20px;
 
}

.section__text__p1 {
  text-align: center;
  color: #e9c568;
  font-size: 1rem;
  margin-bottom: 10px;
}

.title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #fff;
}

.experience-details-container {
  display: flex;
  justify-content: center;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
}

.details-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
  transition: transform 0.3s ease;
}

.details-container:hover {
  transform: translateY(-5px);
}

.color-container {
  border-top: 5px solid limegreen; /* Matches your theme */
}

.article-container {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.project-img {
  width: 100%;
  height: 80%;
  object-fit: cover;
  border-radius: 15px;
}

.project-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #222;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 18px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-color-2 {
  background-color: transparent;
  border: 2px solid limegreen;
  color: limegreen;
}

.btn-color-2:hover {
  background-color: limegreen;
  color: white;
}
.project-img {
  width: 100%;
  height: auto; /* change from height: 80% */
  object-fit: cover;
  border-radius: 15px;
}
.project-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #222;
}
@media screen and (max-width: 768px) {
  .about-containers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* adds spacing between cards */
  }

  .details-container {
    width: 90%; /* makes cards fill most of the screen */
  }
}
@media screen and (max-width: 576px) {
  .details-container {
    width: 100%; /* makes cards fill the entire screen */
  }

  .project-img {
    height: 150px; /* adjusts image height for smaller screens */
  }
} 

/*contact section */


section {
  position: relative;
  z-index: 3;
  padding-top: 50px;
  padding-bottom: 0px;
  margin: auto;
}

.container {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-header {
  margin-bottom: 20px;
  text-align: center;
}

.section-header h2 {
  color: #FFF;
  font-weight: bold;
  font-size: 3em;
  margin-bottom: 20px;
}

.section-header p {
  color: #FFF;
}

.row  {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
}

.contact-info {
  width: 50%;
}

.contact-info-item {
  background-color: #2e1e4d;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  min-width: 250px;
  margin: 10px;
  flex-direction: row; 
}


.contact-info-icon {
  height: 70px;
  width: 70px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon i {
  font-size: 28px;
  color: #1da9c0;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
  padding: 0;
}


.contact-info-content {
  margin-left: 20px;
}

.contact-info-content h4 {
  color: #1da9c0;
  font-size: 1.4em;
  margin-bottom: 5px;
}

.contact-info-content p {
  color: #FFF;
  font-size: 1em;
}

.contact-form {
  background-color: #fff;
  padding: 40px;
  width: 45%;
  padding-bottom: 20px;
  padding-top: 20px;
}

.contact-form h2 {
  font-weight: bold;
  font-size: 2em;
  margin-bottom: 10px;
  color: #333;
}

.contact-form .input-box {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.contact-form .input-box input,
.contact-form .input-box textarea{
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
}

.contact-form .input-box span {
  position: absolute;
  left: 0;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  pointer-events: none;
  transition: 0.5s;
  color: #666;
}

.contact-form .input-box input:focus ~ span,
.contact-form .input-box textarea:focus ~ span{
  color: #e91e63;
  font-size: 12px;
  transform: translateY(-20px);
}

.contact-form .input-box input[type="submit"]
{
  width: 100%;
  background: #00bcd4;
  color: #FFF;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  border: 1px solid #00bcd4;
  transition: 0.5s;
}

.contact-form .input-box input[type="submit"]:hover
{
  background: #FFF;
  color: #00bcd4;
}

/* Base layout for larger screens */
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  width: 48%;
}

.contact-form {
  width: 48%;
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 8px;
}

/* Icon and content spacing */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  padding: 15px 0;
}

.contact-info-icon {
  height: 70px;
  width: 70px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 20px;
}

.contact-info-icon i {
  font-size: 30px;
  color: #1da9c0;
}

.contact-info-content h4 {
  color: #1da9c0;
  font-size: 1.2em;
  margin-bottom: 5px;
}

.contact-info-content p {
  color: #fff;
  font-size: 1em;
  line-height: 1.4;
}

/* ================================
   📱 Responsive Design Starts Here
   ================================ */

/* Tablets and medium screens */
@media screen and (max-width: 768px) {
  .row {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .contact-info,
  .contact-form {
    width: 90%;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .contact-info,
  .contact-form {
    width: 100%;
  }

  .contact-info-icon {
    height: 60px;
    width: 60px;
    margin-right: 15px;
  }

  .contact-info-icon i {
    font-size: 24px;
  }

  .contact-form h2 {
    font-size: 1.5em;
  }

  .contact-form .input-box input,
  .contact-form .input-box textarea {
    font-size: 14px;
    max-width: 100%;
    box-sizing: border-box;
  }
}