@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: rgb(19, 19, 19);
    color: #EEE9C8;
}

/* Header Section */
header {
    margin-top: 0px;
    position: fixed;
    top: 0;
    left: 0;
    height: 10%;
    width: 100%;
    padding: 1rem 9%;
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Ensures the items are vertically centered */
    z-index: 100;
    transition: top 0.6s ease; /* Add this transition for smooth hiding/showing */
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: #EEE9C8;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

.menu-toggle {
    display: none;
    font-size: 2.5rem;
    color: #EEE9C8;
    cursor: pointer;
    transition: 0.3s ease;
}

/* Responsive Navigation */
@media (max-width: 995px) {
    header {
        padding: 1rem 2rem; /* Adjust padding for mobile */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        z-index: 101;
        font-size: 2.5rem;
        color: #EEE9C8;
        cursor: pointer;
        margin-top: 0.1rem; /* Fine-tune alignment with the logo */
    }

    nav {
        position: fixed;
        top: 10%;
        right: -100%; /* Hide the menu initially */
        width: 60%;
        height: 90%;
        background-color: #161616;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.5s ease; /* Smooth slide-in animation */
        z-index: 100;
    }

    nav.active {
        right: 0; /* Slide the menu in */
    }

    nav a {
        font-size: 2rem;
        margin: 2rem 0;
    }

    nav a:hover,
    nav a.active {
        border: none;
        border-bottom: 0.2rem solid #b74b4b;
    }
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 5rem 9%;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(19, 19, 19);;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Scaling effect for home image */
.home-img img {
    transition: transform 4s ease-in-out; /* Smooth scaling effect */
    transform: scale(.3); /* Default size */
}

.home-img img.scaling {
    transform: scale(1); /* Enlarged size */
}

span {
    color: #b74b4b;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.7rem;
}

.title{
    text-align: center;
    font-size: 5vw;
    font-weight: 700;
    line-height: 1.3;
}

.quote{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3.1vw;
    font-weight: 700;
    line-height: 1.3;
    position: absolute;
    top: 3vw;
    background-color: transparent;
}

.quote1{
    text-align: center;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
} 

.topic{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 0px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.left{
    position: relative;
}

html {
    scroll-behavior: smooth;
}

.left img {
    width: 100%;
    height: auto; /* Maintains aspect ratio */
    box-shadow: 0 0 0px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
    object-fit: cover; /* Ensures the image is well-proportioned */
}

.left img.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem;
    transition: 0.3s ease;
    color: #EEE9C8;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgb(19, 19, 19);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
    background-color: #b74b4b;
    color: rgb(19, 19, 19);
    box-shadow: 0 0 25px #b74b4b;
}

.btn1 {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: rgb(19, 19, 19);
    justify-content: center;
    align-items: center;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn1:hover {
    transform: scale(1.03);
    background-color: #b74b4b;
    color: rgb(19, 19, 19);
    box-shadow: 0 0 25px #b74b4b;
}

#dynamic-text {
    color: #b74b4b; /* Replace with your desired color */
    font-weight: bold; /* Optional: make the text bold */
}


/* Mobile View */
@media (max-width: 995px) {
    header {
        padding: 1rem 2rem; /* Adjust padding for mobile */
    }

    .menu-toggle {
        display: block;
        position: absolute;
        top: 1.9rem;
        right: 2rem;
        z-index: 101;
        font-size: 2.5rem;
        color: #EEE9C8;
        cursor: pointer;
        margin-top: 0.1rem; /* Fine-tune alignment with the logo */
    }

    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

/* Skills Section */
.skills {
    padding: 50px 20px;
    background: rgb(19, 19, 19);
    text-align: center;
}

.skills .title {
    font-size: 5vw;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    position: relative;
}

.skills .title span {
    color: #b74b4b;
}

.skills-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    background: #EEE9C8;
    border: 1px solid #EEE9C8;
    border-radius: 8px;
    width: 40vw;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 50px;
    color: #b74b4b;
    margin-bottom: 15px;
}

.skill-item h4 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.skill-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-details {
        flex-direction: column;
        align-items: center;
    }

    .skill-item {
        width: 90%;
    }
}

/* Keyframes for Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keyframes for Gradient Background Animation */
@keyframes gradientBackground {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* About Me Section */
.about {
    padding: 5rem 9%;
    background: rgb(19, 19, 19);
    background-size: 400% 400%;
    animation: gradientBackground 15s ease infinite;
    color: #EEE9C8;
    overflow: hidden; /* Ensure smooth clipping */
}

.about-details .right,
.about-details .left {
    animation: fadeIn 1.5s ease both;
}

.about-details .right {
    animation-delay: 0.3s; /* Staggered delay for smoother effect */
}

.about-details .left img {
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.about-details .left img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.quote {
    animation: fadeIn 2s ease both;
    animation-delay: 0.5s;
}

/* Button Hover Animation */
.btn {
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
    background-color: #243B55;
    color: #EEE9C8;
    box-shadow: 0 0 20px #b74b4b;
}

/* Center the entire slider in its section */
#experiences {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* optional: vertically center in full viewport */
  text-align: center;
}

.slider {
  position: relative;
  width: 600px;
  height: 400px;
  perspective: 1000px;

  /* Center horizontally */
  margin: 0 auto;
}

/* Center each slide relative to the slider */
.slide {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25vw;
  height: 30vw;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Adjust transforms now relative to center */
.slide.active {
  transform: translate(-50%, -50%) scale(1) translateZ(100px);
  z-index: 3;
}

.slide.next {
  transform: translate(calc(-50% + 220px), -50%) scale(0.8) rotateY(-20deg);
  z-index: 2;
  opacity: 0.8;
}

.slide.prev {
  transform: translate(calc(-50% - 220px), -50%) scale(0.8) rotateY(20deg);
  z-index: 2;
  opacity: 0.8;
}

.controls {
  margin-top: 12vw;
}

.slide p {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 6px 0;
  font-family: sans-serif;
  font-weight: 600;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 2rem;
  padding: 8px 20px;
  margin: 0 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.boxes1 {
  position: relative;
  width: 100%;
  min-height: 100vh; /* or adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background image with opacity */
.boxes1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('webexpbg.jpg') center/cover no-repeat;
  opacity: 0.2; /* adjust opacity here */
  z-index: 0;
}
/* Ensure your content stays above the background */
.boxes1 .content1 {
  position: relative;
  z-index: 1;
  color: #fff; /* optional: makes text readable */
}

.carousel {
  position: relative;
  width: 100vw; /* fills the browser width */
  overflow: hidden;
  margin-top: 5rem;
}

.carousel-track {
  display: flex;
  width: calc(100vw * 6); /* 6 images total */
  animation: scrollInfinite 40s linear infinite;
}

.carousel-track img {
  width: 40vw;  /* each image spans the whole screen width */
  height: 45vw;  /* adjust to your preferred height */
  object-fit: cover;
  flex-shrink: 0;
}

/* Infinite scroll animation */
@keyframes scrollInfinite {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-300vw); /* move by width of 3 unique images */
  }
}

.carousel-track:hover {
  animation-play-state: paused;
}

.about1 {
  position: relative;
  background: url('aboutme.jpg') center/cover no-repeat; /* replace 'aboutbg.jpg' with your image */
  color: #EEE9C8;
  padding: 5rem 9%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(19, 19, 19, 0.75); /* dark overlay for readability */
  z-index: 0;
}

.about1 .home-content {
  position: relative;
  z-index: 1; /* ensures text stays above the overlay */
}

.contact {
  position: relative;
  padding: 100px 10%;
  color: #EEE9C8;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('contact.jpg') center/cover no-repeat;
  z-index: -1; /* changed from 0 to -1 */
  opacity: 0.12; /* makes text readable */
}

.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
}


.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #EEE9C8;
}

.contact-info p {
  font-size: 1rem;
  color: #EEE9C8;
  margin-bottom: 10px;
}

.contact-details p i {
  color: #b74b4b;
  margin-right: 10px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  color: #EEE9C8;
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #b74b4b;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #EEE9C8;
  font-size: 1rem;
  resize: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #b74b4b;
  outline: none;
}

.contact-form button {
  background: linear-gradient(45deg, #b74b4b, #b74b4b);
  color: #EEE9C8;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: linear-gradient(45deg, #b74b4b, #b66767);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info, .contact-form {
    width: 100%;
  }
}

