
/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}


body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #fff;
  
}
/* Add this at the top of your CSS file, preferably near other base styles */
/* Fix for section overlapping with fixed navbar */
#home, #testimonials {
  scroll-margin-top: 100px; /* Adjust this to match your navbar height */
}
#about{
  scroll-margin-top: -75px; 
}
#service{

  scroll-margin-top: 10px;
}
/* Alternative fallback for older browsers */
section {
  position: relative;
  padding-top: 80px;
  margin-top: -80px;
}

/* Adjust for mobile */
@media (max-width: 599px) {
  #home, #about, #services, #portfolio, #testimonials, #contact {
    scroll-margin-top: 60px;
  }
  
  section {
    padding-top: 60px;
    margin-top: -60px;
  }
}

/* Container */
.con1, .top1, .top2, .top3 {
  width: 100%;
  box-sizing: border-box;
}

/* Top Bar */
.top1 {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 10px 20px;
  background: linear-gradient(141deg, #ccc 25%, #eee 40%, #ddd 55%);
  color: #333;
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  font-weight: 300;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 0px;
  margin-top: -8px;
}

/* Animated text containers */
.top1 div {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
}

.top1 div:first-of-type {
  animation: showup 7s infinite;
  margin-left: 6%;
}

.top1 div:last-of-type {
  width: 0px;
  animation: reveal 7s infinite;
}

.top1 div:last-of-type span {
  margin-left: -355px;
  animation: slidein 7s infinite;
}

/* Keyframes */
@keyframes showup {
  0% { opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes slidein {
  0% { margin-left: -800px; }
  20% { margin-left: -800px; }
  35% { margin-left: 0px; }
  100% { margin-left: 0px; }
}

@keyframes reveal {
  0% { opacity: 0; width: 0px; }
  20% { opacity: 1; width: 0px; }
  30% { width: 355px; }
  80% { opacity: 1; }
  100% { opacity: 0; width: 355px; }
}



/* @keyframes slideInLeft{
  from{
transform: translateX(-300px);
  }

  to{
transform: translateX(0); 
  }
} */


.box {
  background-color: #e6e2e2;
  color: #522546;
  padding: 10px 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
   
  animation: slideInLeft 1s ease-in 0s 1 normal none;


}

/* Navbar */
.righttext {
  color: white;
  cursor: pointer;
  text-decoration: none; /* Remove underline */
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Remove blue hover effect */
.righttext:hover {
  color: #fca311; /* Change the color when hovered, no blue */
  text-decoration: none; /* Ensure no underline appears */
}

/* Tooltip styles */
.nav-item {
  position: relative;
}


/* Navbar Layout */
.top2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color:#522546;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Scrolled State */
.top2.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Body Padding to Prevent Content Hiding */
body {
  padding-top: 60px;
}

/* Left Side - Logo */
.left {
  display: flex;
  align-items: center;
}

/* .lefttext {
  font-family: 'Abril Fatface', serif;
  font-size: 2rem;
  color: #d3567e;
  background: linear-gradient(90deg, #d3567e, #ff8fab, #d3567e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s linear infinite;
  transition: all 0.3s ease;
} */
 .lefttext img{
  height: 40px; /* Adjust this value to your preferred height */
    width: auto; /* This maintains aspect ratio */
    transition: var(--transition); /* Optional: if you want smooth resizing */
 }

.lefttext:hover {
  animation-duration: 2s; /* Speed up animation on hover */
  transform: scale(1.05); /* Slightly enlarge text */
  text-shadow: 0 0 10px rgba(211, 86, 126, 0.3); /* Add glow effect */
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Right Side - Navigation */
.right {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.righttext {
  text-decoration: none;
  color: #ac6675;
  font-weight: 500;
  padding: -8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.righttext:hover {
  color: #fca311;
  transform: translateY(-2px);
}

/* Animated Underline */
.righttext::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #d3567e;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.righttext:hover::after {
  width: 100%;
}

/* Mobile Toggle Button (Hidden by Default) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #d3567e;
}

/* banne home */
#home {
  position: relative;
  overflow: hidden;
  height: 85vh;
  padding-top: 100px;
}

/* Slider container */
.top3 {
  position: relative;
  width: 100vw;
  height: 100%;
}

/* Individual slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}
/* Overlay text styling */
.topsubject {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #E8F4EA;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; /* Reduced from 4rem */
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 1;
  line-height: 1.3;
}

.topsubject::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.subtext {
  max-width: 500px; /* Reduced from 600px */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px; /* Increased gap for better spacing */
  padding: 20px;
  margin-top: -30px; /* Adjusted for better positioning */
}

.subtext h1 {
  font-family: "Ethereal", "Baskerville Old Face", "Baskerville", serif;
  font-weight: 400;
  font-size: 2.2rem; /* Reduced from 3rem */
  line-height: 1.3;
  margin-bottom: 0;
  text-align: center;
}
.subtext span {
  display: inline-block;
  opacity: 0;
  filter: blur(4px);
  animation: fade-in 0.8s forwards;
}

.subtext span:nth-child(1) { animation-delay: 0.1s; }
.subtext span:nth-child(2) { animation-delay: 0.2s; }
.subtext span:nth-child(3) { animation-delay: 0.3s; }
.subtext span:nth-child(4) { animation-delay: 0.4s; }
.subtext span:nth-child(5) { animation-delay: 0.5s; }
.subtext span:nth-child(6) { animation-delay: 0.6s; }
.subtext span:nth-child(7) { animation-delay: 0.7s; }
.subtext span:nth-child(8) { animation-delay: 0.8s; }
.subtext span:nth-child(9) { animation-delay: 0.9s; }
.subtext span:nth-child(10) { animation-delay: 1.0s; }
.subtext span:nth-child(11) { animation-delay: 1.1s; }
.subtext span:nth-child(12) { animation-delay: 1.2s; }
.subtext span:nth-child(13) { animation-delay: 1.3s; }
.subtext span:nth-child(14) { animation-delay: 1.4s; }
.subtext span:nth-child(15) { animation-delay: 1.5s; }
.subtext span:nth-child(16) { animation-delay: 1.6s; }
.subtext span:nth-child(17) { animation-delay: 1.7s; }
.subtext span:nth-child(18) { animation-delay: 1.8s; }
.subtext span:nth-child(19) { animation-delay: 1.9s; }
.subtext span:nth-child(20) { animation-delay: 2.0s; }
.subtext span:nth-child(21) { animation-delay: 2.1s; }
.subtext span:nth-child(22) { animation-delay: 2.2s; }
.subtext span:nth-child(23) { animation-delay: 2.3s; }
.subtext span:nth-child(24) { animation-delay: 2.4s; }
.subtext span:nth-child(25) { animation-delay: 2.5s; }

@keyframes fade-in {
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes scale {
  100% {
    transform: scale(1);
  }
}
.subbutton {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 20px; /* Reset from -60px */
 
  
}

.subbutton button {
  padding: 11px 24px; /* Slightly reduced padding */
  font-size: 0.9rem; /* Reduced font size */
  border-radius: 30px;
}

.subbutton button:hover {
  background-color: #000;
  color: white;
}

/* -----social media */
.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.social-icon:hover {
  background: var(--accent);
  transform: translateY(-5px);
  color: white;
}

/* Specific colors for each social media on hover */
.social-icon:nth-child(1):hover { background: #3b5998; } /* Facebook */
.social-icon:nth-child(2):hover { background: #0a0a0a; } /* Twitter x*/
.social-icon:nth-child(3):hover { background: #E1306C; } /* Instagram */
.social-icon:nth-child(4):hover { background: #0c58e3; } /* linkedin */






/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* About Section */
.about-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 0 auto;
  max-width: 1200px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
  height: auto;
}



.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  font-weight: 300;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  line-height: 1.6;
  padding: 1rem;
}
.Ab-text {
  background-color: #111;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  margin-bottom: 25px;
  margin-top: 5%;
  padding: 1rem;
  scroll-margin-top: 80px;
}

/* Animation for the about heading */
.waviy {
  position: relative;
  text-align: center;
  padding: 0 1rem;
}

.waviy span {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  animation: flip 2s infinite;
  animation-delay: calc(.2s * var(--i));
  margin: 0 2px;
}

@keyframes flip {
  0%,80% {
    transform: rotateY(360deg);
  }
}

/* Slider section */
.slider-container,
.slider-container2 {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.slider-container2 {
  flex-direction: row-reverse;
}

.slider {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  position: relative;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
}

.slider img {
  min-width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* Info section */
.info-section {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 100px;
}

.info-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 30px 25px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
}

.info-card img {
  height: 40px;
  margin-bottom: 20px;
}

.info-card h3 {
  font-size: 1.5rem;
  color: #222;
  margin-bottom: 15px;
  font-family: 'Georgia', serif;
}

.info-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  font-family: 'Georgia', serif;
}

/* Optional: If you have a fixed header, add this */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px; /* Should match your scroll-margin-top value */
  z-index: 100;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 80px; /* Should match your header height */
}

/* Services */
#services {
  padding: 6rem 2rem; /* Increased padding */
  position: relative;
  z-index: 1;
  background: #fff;
  min-height: 100vh; /* Added minimum height */
  margin-top: 0;
}

.services-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  display: grid; /* Changed to grid layout */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-list li {
  background: #f9f9f9;
  border-left: 5px solid #522546;
  padding: 2rem; /* Increased padding */
  border-radius: 8px; /* Increased border radius */
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Enhanced shadow */
  min-height: 200px; /* Minimum height for each service item */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-list li.slide-in {
  animation-name: slideInLeft;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 1;
  transform: translateX(0);
}

.services-list li strong {
  color: #522546;
  font-size: 1.3em; /* Increased font size */
  margin-bottom: 0.5rem;
  display: block;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Video Showcase */
.showcase {
  position: relative;
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 3rem 0;
  background: transparent; /* Removed black background */
  margin-top: -60px;
}

.text-video {
  position: absolute;
  width: 100%;
  height: 60%;
  object-fit: cover;
  z-index: 0;
}

.video-text {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  -webkit-mask-image: none; /* Removed text masking */
  -webkit-mask-clip: none;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: cover;
  mix-blend-mode: normal; /* Changed from screen to normal */
  z-index: 1;
  position: relative;
  text-align: center;
  width: 100%;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Added text shadow for better visibility */
  padding: 0;
  margin: 0;
}
/* Blog Section */
.blog-section {
  padding: 6rem 2rem; /* Increased padding */
  background-color: #f9f9f9;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 4rem; /* Added margin to separate from services */
}

.section-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.blog-container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-post {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  text-align: left;
  transition: transform 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
}

.blog-post img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-post h3 {
  padding: 1rem;
  font-size: 1.3rem;
  color: #222;
}

.blog-post p {
  padding: 0 1rem 1rem;
  color: #555;
  font-size: 0.95rem;
  flex-grow: 1;
}

.blog-post a {
  display: inline-block;
  padding: 0.8rem 1rem;
  background-color: #d19b64;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-top: 1px solid #eee;
  transition: background 0.3s;
}

.blog-post a:hover {
  background-color: #b87f4c;
}

/* Portfolio */
#portfolio {
  position: relative;
  padding: 4rem 0;
  margin: 4rem 0;
  z-index: 2;
}
.portfolio-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2rem;
  justify-content: flex-start; /* Changed from space-between */
  scrollbar-width: thin; /* For better scrollbar */
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  height: 350px;
  min-width: 300px; /* Changed from width to min-width */
  flex-shrink: 0;
  margin: 0 1rem;
}

.image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.image-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.overlay-text {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  text-align: center;
  padding: 10px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s;
}

.portfolio-item:hover .overlay-text {
  background: rgba(0, 0, 0, 0.8);
}



.title-word {
  animation: color-animation 4s linear infinite;
}

.title-word-1 {
  --color-1: #DF8453;
  --color-2: #3D8DAE;
  --color-3: #E4A9A8;
}

.title-word-2 {
  --color-1: #DBAD4A;
  --color-2: #ACCFCB;
  --color-3: #17494D;
}

.title-word-3 {
  --color-1: #ACCFCB;
  --color-2: #E4A9A8;
  --color-3: #ACCFCB;
}
@keyframes color-animation {
  0%    {color: var(--color-1)}
  32%   {color: var(--color-1)}
  33%   {color: var(--color-2)}
  65%   {color: var(--color-2)}
  66%   {color: var(--color-3)}
  99%   {color: var(--color-3)}
  100%  {color: var(--color-1)}
}

/* Here are just some visual styles. 🖌 */

.Pcontainer {
  display: grid;
  place-items: center;  
  text-align: center;
  height: 200px;
  margin-top: -250px;
}

.title {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 8.5vw;
  text-transform: uppercase;
}



/* Testimonials */
#testimonials {
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  padding: 6rem 0;
  margin: 4rem 0;
  z-index: 2;
}



.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  margin-top: 20px;
}

.bgVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* darkens the video for better readability */
  z-index: 1;
}

.testimonial-content {
  position: relative;
  z-index: 3; /* Increased from 2 */
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.feedback-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  margin: 0 auto;
  backdrop-filter: blur(5px);
}

.feedback-form input,
.feedback-form textarea,
.feedback-form button {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
}

.feedback-form button {
  background-color: #fff;
  color: #333;
  cursor: pointer;
}

/* feedback */
.feedback-form {
  margin-top: 2rem;
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feedback-form h3 {
  margin-bottom: 1rem;
  color: #2d3748;
  font-size: 1.25rem;
  text-align: center;
}

.feedback-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-form input,
.feedback-form textarea {
  padding: 0.6rem;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 1rem;
}

.feedback-form button {
  padding: 0.6rem;
  background-color: #4a5568;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.feedback-form button:hover {
  background-color: #2d3748;
}


/* Contact */
/* Contact Section Background */
/* Contact Section Background */
/* Contact Section CSS */
.contact-section {
  background-image: url('https://cdn.pixabay.com/photo/2019/08/30/06/03/telephone-4440525_1280.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 6rem 2rem 3rem; /* Top, sides, bottom padding */
  color: #fff;
  margin: 4rem 0 0; /* Top, sides, bottom margin */
  z-index: 2;
}

.contact-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 3rem;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: #ff66cc;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
  font-size: 1rem;
  margin-top: 1rem;
}

.contact-form button:hover {
  background-color: #cc3399;
}

.contact-info {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-item {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #fff;
}

.contact-item a {
  color: #ffccff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #fff;
}
.success {
  color: rgb(227, 220, 11);
  font-weight: bold;
  padding: 8px;
}

.error {
  color: #F05053;
  font-weight: bold;
  padding: 8px;
}


/* Footer Section CSS */
.one-line-footer {
  background-color: #522546;
  color: white;
  padding: 1.2rem;
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 3;
}

.one-line-footer a {
  color: #ff8fab;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
  font-weight: 500;
}

.one-line-footer a:hover {
  color: white;
}
/* ----- Default styles (Desktop First) ----- */

/* Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {
  body {
    font-size: 12px;
  }
  #home {
    padding-top: 60px;
  }
  #home .topsubject {
    font-size: 1.5rem;
  }

  .subtext h1 {
    font-size: 1.3rem;
  }

  /* Show toggle button */
  .nav-toggle {
    display: block;
  }

  /* Hide nav menu by default */
  .nav-menu {
    display: none;
    flex-direction: column;
    background-color: #522546;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 180px;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  /* Show menu when active */
  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    margin: 8px 0;
  }

  .subbutton button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .social-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .top1 {
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    font-size: 14px;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
  }

  .top1 div {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
  }

  .top1 div:first-of-type {
    animation: showup 7s infinite;
  }

  .top1 div:last-of-type {
    width: auto;
    animation: none;
  }

  .top1 div:last-of-type span {
    margin-left: 10px;
    animation: slidein-singleline 7s infinite;
    display: inline-block;
  }
  
  .slider-container,
  .slider-container2 {
    flex-direction: column !important;
    gap: 1rem;
    align-items: center;
  }

  .slider {
    width: 100%;
    max-width: 90vw;
    height: 250px;
  }

  .slider img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
  }

  .about-text {
    max-width: 90vw;
    text-align: center;
    font-size: 1rem;
    padding: 0 10px;
  }

  .Ab-text {
    flex-direction: column;
    padding: 10px;
    margin-top: 10%;
  }

  .waviy span {
    font-size: 24px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .video-text {
    font-size: 1rem;
  }

  .showcase {
    height: 110px;
  }
  .text-video{
    height: 50%;
  }
  .contact-section {
    padding: 3rem 1rem 2rem; /* Reduced padding for mobile */
    margin: 2rem 0 0; /* Reduced margin */
  }

  .contact-overlay {
    padding: 1.5rem; /* Reduced padding */
    border-radius: 8px; /* Slightly smaller radius */
    width: 90%; /* More width utilization */
  }

  .contact-form {
    gap: 0.8rem; /* Tighter gap between form elements */
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px; /* Slightly smaller padding */
    font-size: 0.9rem; /* Slightly smaller font */
  }

  .contact-form textarea {
    min-height: 120px; /* Smaller text area */
  }

  .contact-form button {
    padding: 0.7rem 1.2rem; /* Smaller button */
    font-size: 0.9rem; /* Smaller font */
    margin-top: 0.5rem; /* Less top margin */
  }

  .contact-info {
    margin-bottom: 1.5rem; /* Reduced margin */
  }

  .contact-item {
    font-size: 1rem; /* Smaller font */
    margin: 0.4rem 0; /* Tighter spacing */
  }

  /* Improve touch targets */
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    min-height: 44px; /* Minimum touch target size */
  }

  /* Adjust link sizes for better touch */
  .contact-item a {
    display: inline-block;
    padding: 4px 0; /* Better touch area */
  }

  .portfolio-item{
    min-width: 225px;
  }

  #about{
    scroll-margin-top: -24px; 
  }

  #services{
    scroll-margin-top:-15px ;
  }
}

/* Small Devices (Portrait tablets & large phones, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  #home {
    padding-top: 80px;
  }
  .topsubject {
    font-size: 2rem;
  }

  .subtext h1 {
    font-size: 2rem;
  }

  .subbutton button {
    font-size: 0.9rem;
  }
  .top1 {
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    font-size: 14px;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
  }

  .top1 div {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
  }

  .top1 div:first-of-type {
    animation: showup 7s infinite;
  }

  .top1 div:last-of-type {
    width: auto;
    animation: none;
  }
  
  .right {
    flex-direction: row;
  }

  .nav-menu {
    gap: 15px;
  }

  .righttext {
    font-size: 0.6rem;
  }
  .slider-container,
  .slider-container2 {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .slider {
    width: 100%;
    max-width: 90vw;
    height: 250px;
  }

  .slider img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }

  .about-text {
    max-width: 90vw;
    text-align: center;
    font-size: 1rem;
    padding: 0 10px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #about{
    scroll-margin-top: -36px; 
  }

  #testimonials{
    scroll-margin-top:64px ;
  }
  
}



/* Medium Devices (Tablets, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  #home {
    padding-top: 80px;
  }

  /* Make text smaller and neater */
  #home .topsubject {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  #home .subtext h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .subbutton {
    margin-top: 20px;
  }

  .subbutton button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .social-icons {
    margin-top: 15px;
    gap: 15px;
  }

  .social-icons i,
  .social-icons svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }
  .top1 {
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    font-size: 14px;
    padding: 8px 12px;
    text-align: left;
    white-space: nowrap;
  }

  .top1 div {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
  }

  .top1 div:first-of-type {
    animation: showup 7s infinite;
  }

  .top1 div:last-of-type {
    width: auto;
    animation: none;
  }
  .right {
    flex-direction: row;
  }

  .nav-menu {
    gap: 18px;
  }

  .righttext {
    font-size: 0.9rem;
  }
  .slider-container,
  .slider-container2 {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .slider {
    width: 100%;
    max-width: 90vw;
    height: 250px;
  }

  .slider img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }

  .about-text {
    max-width: 90vw;
    text-align: center;
    font-size: 1rem;
    padding: 0 10px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #about{
    scroll-margin-top: -53px; 
  }

  #testimonials{
    scroll-margin-top:64px ;
  }
}

/* Large Devices (Desktops, 992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #home {
    padding-top: 80px;
  }

  #home .topsubject {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  #home .subtext h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .subbutton {
    margin-top: 20px;
  }

  .subbutton button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .social-icons {
    margin-top: 15px;
    gap: 15px;
  }

  .social-icons i,
  .social-icons svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }

  .right {
    flex-direction: row;
  }

  .nav-menu {
    gap: 20px;
  }

  .righttext {
    font-size: 1rem;
  }
  .about-section {
    gap: 2rem;
  }
  
  .about-image {
    min-width: 40%;
  }
  
  .about-text {
    min-width: 50%;
  }

 
  #about{
    scroll-margin-top: -60px; 
  }
 
}

/* Animation Keyframes */
@keyframes flip {
  0%,80% {
    transform: rotateY(360deg);
  }
}

/* Extra Large Devices (Large desktops, 1200px to 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  #home {
    padding-top: 80px;
  }

  #home .topsubject {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  #home .subtext h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .subbutton {
    margin-top: 20px;
  }

  .subbutton button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .social-icons {
    margin-top: 15px;
    gap: 15px;
  }

  .social-icons i,
  .social-icons svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }
  .right {
    flex-direction: row;
  }

  .nav-menu {
    gap: 22px;
  }

  .righttext {
    font-size: 1.05rem;
  }
 
}

/* Ultra Wide Screens (TVs, 1400px and above) */
@media (min-width: 1400px) {
  #home {
    padding-top: 80px;
  }

  #home .topsubject {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  #home .subtext h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .subbutton {
    margin-top: 20px;
  }

  .subbutton button {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .social-icons {
    margin-top: 15px;
    gap: 15px;
  }

  .social-icons i,
  .social-icons svg {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }

 
}
