/*---------------------------------------------------
  CSS Custom Properties
-----------------------------------------------------*/
:root {
  --primary-color: #1a1a1a;
  --accent-color: #ff4500;
  --accent--color: hsl(0, 0%, 96%);
  --smoky-white: hsl(0, 0%, 96%);
  --light-bg: hsl(0, 0%, 7%);
  --dark-bg: #111;
  --header-bg: hsl(0, 0%, 96%);
  --transition: 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  --font-family: 'Poppins', sans-serif;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}


html {
  scroll-behavior: smooth;
}


/*---------------------------------------------------
  Global Reset & Base Styles
---------------------------------------------------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Tahoma, sans-serif;
}

body {
  font-family: var(--font-family);
  background: var(--light-bg);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/*---------------------------------------------------
  Header & Navigation
---------------------------------------------------*/
.header {
    display: flex;
  justify-content: center;
  align-items: center; 
  background: var(--smoky-white);
  backdrop-filter: blur(10px);
  padding: 10px 5%;
  z-index: 1000;
  box-shadow: var(--shadow);
  border: 1px solid rgb(216, 173, 107);
  border-radius: 25px 25px 0px 0px;
  margin-left: 40%;
  transform: translateX(-20%);
}

/*--------------------------------------
  Navbar
-----------------------------------------*/
.navbar {
  display: flex;
  flex: 1;
  gap: 2rem;
  padding: 10px;
  background: var(--smoky-white);
  color: #fff;
  border-radius: 20px 2px 20px 2px;
  overflow: hidden;
}

.navbar a {
  position: relative;
  font-size: 1rem;
  color: var(--primary-color);
  transition: color var(--transition);
  text-decoration: none;
}

.navbar a::after {
  content: '';
  position: relative;
  left: 0; 
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.navbar a:hover::after,
.navbar a.active::after {
  transform: scaleX(1);
  transform-origin: center;
}

/*--------------------------------------------
 Contact Button
----------------------------------------------*/
.contact {
  padding: 10px;
  background: var(--accent-color);
  color: #fff;
  border-radius: 25px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.contact:hover {
  background: transparent;
  color: var(--accent-color);
  transform: scale(1.05);
  border: 2px solid var(--accent-color);
}


/*-----------------------------------------
Home-Profile - Sections 1
-------------------------------------------*/

.home-profile {
  position: fixed;
  border: 1px solid rgb(214, 172, 109);
  width: 20%;
  margin-left: 5%;
  max-height: 80%;
  margin-bottom: 10%;
  animation: fadeIn 1s ease-out;
  background: linear-gradient(135deg, rgb(20, 12, 12), rgb(15, 15, 15));
  border-radius: 25px;
}

.home-profile-image {
  display: flex;
  flex: 1;
  justify-content: center;
  align-items: center;
  padding-top: 50% ;
  animation: slideInRight 1s ease-out;
  border: #232222;
}

.home-profile-image:hover::before {
  animation: borderMove 4s linear infinite;
}

@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


.home-profile-image #home-profile-image-1 {
  width: 80%;
  border-radius: 20%;
  transition: transform var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.home-profile-image img:hover {
  transform: scale(1.05);
  border: 1px solid blanchedalmond;
}

.home-profile-name {
  display: flex;
  flex: 1;
  justify-content: center;
  padding-top: 5% ;
  color: #fff;
  font-weight: bold;
  font-size: 75%;
  animation: slideInRight 1s ease-out;
  font-size: clamp(0.5rem, 1vw, 2rem);
  overflow: clip;
}

.home-profile-name:hover::before {
  animation: 3s linear 1s infinite alternate slide-in;
}

.home-profile-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10% 10% 10% 10%;
}

.profile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.profile-icon img:hover svg{
  transform: scale(1.05);
  cursor: pointer;
}

.profile-icon-1  {
  align-items: center;
  justify-content: center;
  padding: 10% 0% 10% 10%;
}

img, svg {
  width: 100%;
  height: auto; 
}

/*----------------------------------------------------
Download - Button
------------------------------------------------------*/

.download-button {
  display: flex;
  flex: 1;
  justify-content: center;
}

#download-button-1, button {
  display: flex;
  background: linear-gradient(135deg, gold, #dec941);
  border: none;
  width: auto;
  margin-top: 5%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#download-button-2, a {
  color: var(--light-bg);
  text-decoration: none;
}

/* Hover and active states for the back button */
#download-button-1:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

#download-button-1:active {
  transform: scale(0.98);
}

/*---------------------------------------------------
Home-Content - Section 1
---------------------------------------------------*/
.home {
  display: flex;
  overflow: auto;
  word-break: break-word;
  align-items: center;
  justify-content: space-around;
  padding: 30px 5% 30px; /* Extra top padding to offset fixed header */
  min-height: 100vh;
  gap: 40px;
  animation: fadeIn 1s ease-out;
  background: linear-gradient(135deg, hsl(0, 0%, 7%), hsl(0, 0%, 10%));
  margin-left: 40%;
  margin-bottom: 20px;
  border-radius: 0px 0px 25px 25px;
  border: 1px solid rgb(218, 176, 113);
  transform: translateX(-20%);
}

.home-content h4 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--accent--color);
}

.home-content {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.2;
}

span {
  color: var(--accent-color);
}

.home-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  color: white;
}

.btn-box-1 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-1,
.btn-2 {
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-1 {
  background: var(--primary-color);
  color: #fff;
}

.btn-1:hover {
  background: #fff;
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.btn-2 {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

.btn-2:hover {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}


/*---------------------------------------------------
Education - Section 2
---------------------------------------------------*/

.education-sec {
  background: linear-gradient(135deg, whitesmoke, whitesmoke);
  animation: fadeIn 1s ease-out;
  border-radius: 25px;
  margin-left: 40%;
  margin-bottom: 20px;
  padding: 20px;
  transform: translate(-20%);
}

/*----------------------
Education-achieve Style
------------------------*/

.education-achieve {
  display: flex;
  overflow: auto;
  word-break: break-word;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  margin: 50px 0px 50px 0px;
}

.education-achieve h1 {
  font-size: 2rem;
  color: var(--accent-color);
  font-family: system-ui, 'Segoe UI', 'Open Sans', 'Helvetica Neue', sans-serif;
}

/*-----------------
Timeline Container
-------------------*/

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

/*------------------------
Vertical line on the left
--------------------------*/

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: black;
}

/*------------------------
Timeline-Event Container
--------------------------*/

.timeline-event {
  position: relative;
  background: #fff;
  border-radius: 8px;
  margin-bottom: 30px;
  padding: 20px 20px 20px 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-event:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/*------------------------
Timeline Marker
--------------------------*/

.timeline-marker {
  position: absolute;
  top: 25px;
  left: -11px;
  background: var(--dark-bg);
  border: 3px solid #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.timeline-event:hover .timeline-marker {
  background: var(--accent-color);
}

/*------------------------
Content Styles
--------------------------*/

.timeline-date {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 10px;
}

.timeline-content h2 h3 h4{
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #232222;
}

.timeline-content p {
  font-size: 1rem;
  color: #555;
}

.timeline-content-1 {
  position: relative;
  display: flex;
  align-items: initial;

  gap: 20px;
}
.timeline-quote-img {
  padding-top: 10px;
  height: auto;
  width: 40%;
  margin-left: 60%;
  
}

.timeline-hrz-ln {
  content: icon ;
  position: absolute;
  height: 90%;
  top: 8px;
  bottom: 0;
  width: 5px;
  background: var(--accent-color);
}

.timeline-quote-1 {
  font-family: serif, Times New Roman, Times ;
  font-weight: 550;
  font-size: 25px;
  white-space: pre-wrap;
  text-align: justify;
}

.timeline-tag {
  font-family:Georgia, 'Times New Roman', Times, serif; 
  font-weight: 900;
  color: var(--accent-color);
}

/*------------------
Responsive Design 
--------------------*/
@media (max-width: 600px) {
  .timeline {
    padding-left: 30px;
  }

  .timeline-event {
    padding-left: 30px;
  }

  .timeline-marker {
    left: -16px;
  }
}

/*---------------------------------------------------
About - Section 3
---------------------------------------------------*/
.about {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 10%;
  gap: 40px;
  background: linear-gradient(135deg, black, black);
  animation: fadeIn 1s ease-out;
  border-radius: 25px;
  margin-left: 40%;
  margin-bottom: 20px;
  transform: translateX(-20%);
}

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: slideInLeft 1s ease-out;
}

.about-img img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-img img:hover {
  transform: scale(1.05);
}

.about-content {
  flex: 1;
  color: var(--accent--color);
}

.about-content .heading {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-content .heading span {
  color: var(--accent-color);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-content span {
  color: var(--accent-color);
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.btn-box-2 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn-3 {
  padding: 12px 30px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-3 {
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
}

.btn-3:hover {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.about-content .btn-3 {
  margin-top: 15px;
}

/*---------------------------------------------------
Contact-Form Section 4
---------------------------------------------------*/

.contact-form {
  padding: 80px 10%;
  background: whitesmoke;
  text-align: center;
  animation: fadeIn 1s ease-out;
  margin-left: 40%;
  transform: translateX(-20%);
  margin-bottom: 20px;
  border-radius: 25px;
  box-shadow: blur;
}

.contact-form .contact-me {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.contact-form form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .input-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  transition: border var(--transition), box-shadow var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input[type="submit"].btn-1 {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 15px 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.contact-form input[type="submit"].btn-1:hover {
  background: #fff;
  color: var(--primary-color);
  transform: scale(1.05);
  border: 1px solid var(--primary-color);
}

/*---------------------------------------------------
  Footer Section
---------------------------------------------------*/
.footer {
  background: #111;
  padding: 100px 10%;
  text-align: center;
  color: #ddd;
  animation: fadeIn 1s ease-out;
  border-radius: 25px 25px 0px 0px;
  margin-left: 40%;
  transform: translateX(-20%);
}

.footer .social {
  margin-bottom: 20px;
}

.footer .social a {
  margin: 0 10px;
  font-size: 1.8rem;
  color: #ddd;
  transition: color var(--transition);
}

.footer .social a:hover {
  color: var(--accent-color);
}

.footer .list {
  margin: 20px 0;
}

.footer .list li {
  display: inline-block;
  margin: 0 10px;
}

.footer .list li a {
  color: #ddd;
  font-size: 1rem;
  transition: color var(--transition);
}

.footer .list li a:hover {
  color: var(--accent-color);
}

.footer .copyright {
  font-size: 0.9rem;
  margin-top: 10px;
}

/*---------------------------------------------------
  Custom Scrollbar
---------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

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

@keyframes slideInRight {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/*---------------------------------------------------
  Responsive Styles
---------------------------------------------------*/
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px 5%;
    width: 100%;
  }

  .navbar {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  /* Change in main content page */
  .main-content-page {
    width: 100%;
    margin: 0%;
  }

  .home {
    flex-direction: column;
    padding: 120px 5% 60px;
    width: 100%;
  }

  .education-sec {
    width: 100%;
  }
  .about {
    width: 100%;
  }
  .contact-form {
    width: 100%;
  }
  .footer {
    width: 100%;
  }

  .img-box img {
    max-width: 300px;
  }

  .about {
    flex-direction: column;
    padding: 80px 5%;
  }

  .about-img img {
    max-width: 300px;
  }
}
