/* Global Styles */
:root {
    --primary-color: #0ef;
    --secondary-color: #00eeff;
    --dark-bg: #000;
    --text-light: #fff;
    --text-gray: #ccc;
     
}
html {
  scroll-behavior: smooth;
}
:root {
  scroll-behavior: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}
/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  animation: float-up 1s ease forwards;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Entrance animation like other icons */
@keyframes float-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Mobile Navigation - Vertical Menu */
/* Mobile Navigation */
@media (max-width: 767px) {
    .header {
        padding: 15px 5%;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 0;
        transition: left 0.5s ease;
        z-index: 99;
        overflow-y: auto;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navbar a {
        margin: 15px 0;
        font-size: 20px;
        padding: 10px 20px;
        width: 80%;
        text-align: center;
    }
    
    /* Hamburger Menu Icon */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
        z-index: 100;
    }
    
    .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background: #fff;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Remove scrollbar globally but keep scrolling */
html {
    overflow: -moz-scrollbar-none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  html::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
  }
  
  body {
    -ms-overflow-style: none;
    scrollbar-width: none; /* Firefox */
    overflow-y: scroll; /* Enable scrolling */
  }
  
  body::-webkit-scrollbar {
    width: 0 !important; /* Chrome/Safari/Opera */
    display: none;
  }
  
  /* Ensure all scrolling containers also hide scrollbars */
  .container, 
  .serv-container,
  .skills-grid {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .container::-webkit-scrollbar,
  .serv-container::-webkit-scrollbar,
  .skills-grid::-webkit-scrollbar {
    display: none;
  }

  
/* Default styles (for larger screens like desktops and laptops) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    overflow-x: hidden; /* Prevent horizontal overflow */
    color: white;
    background-color: black;
}

/* Make sure the container takes up 100% of the width */
.container {
    width: 100%;
    padding: 20px;
}

/* Technical Skills Section */
#skills {
    background-color: #000;
    padding: 100px 0;
  }
  .sec {
  padding-bottom: 0 !important;  /* Ensure no bottom padding here */
  margin-bottom: 0 !important;
}

.container1,
.container2 {
  margin-bottom: 0 !important;   /* Prevent bottom push */
  padding-bottom: 0 !important;
}
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }
  
  .skill-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #0ef;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
    border-color: #fff;
  }
  
  .skill-card i {
    font-size: 50px;
    color: #0ef;
    margin-bottom: 20px;
    transition: all 0.3s ease;
  }
  
  .skill-card:hover i {
    transform: scale(1.2);
    color: #fff;
  }
  
  .skill-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
  }
  
  .skill-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .skills-grid {
      grid-template-columns: 1fr;
    }
  }

/* Text alignment and layout for the larger screens */
h1, h2 {
    text-align: center;
    font-size: 36px; /* Larger font size for desktops */
}

/* Mobile styles: Smaller screens (e.g., mobile phones) */
@media screen and (max-width: 767px) {
    h1, h2 {
        font-size: 28px; /* Reduce the font size on small screens */
    }

    .container {
        padding: 10px; /* Add smaller padding */
    }

    /* Align items to the center */
    .imgline {
        text-align: center;
    }

    /* Example of responsive image */
    img.responsive {
        max-width: 100%;
        height: auto;
    }

    .contact-icons i {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin: 0px 10px 0px 0;
    }
}
/* Social Media Icons */
.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none; 
    margin: 10px 12px 0 0; /* added more space between icons */
    margin-top: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease; /* smooth hover effect */
    box-shadow: none; /* no glow by default */
}

.home-sci a:hover {
    background: #0ef;
    color: #000;
    box-shadow: 0 0 15px #0ef, 0 0 30px #0ef, 0 0 45px #0ef;
    transform: translateY(-3px);
}


@keyframes slideTop {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Section Styling */
.contact-section {
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

/* Header */
.contact-title {
  font-size: 3rem;
  font-weight: bold;
}

.underline {
  width: 80px;
  height: 4px;
  background-color: #0ef;
  margin: 10px auto 40px;
  border-radius: 2px;
}

/* Form Box */
.contact-box {
    background: linear-gradient(135deg, #120329, #1d0934); /* adjust based on image */
    border: 1px solid rgba(138, 43, 226, 0.3); /* soft border */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.2); /* subtle glow */
    max-width: 800px;
    margin: auto;
}


/* Form Layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 8px;
  padding: 12px 15px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0);
  margin-top: 6px;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.contact-form button {
  background-color: #7f39fb;
  color: rgba(255, 255, 255, 0);
  padding: 12px 40px;
  font-size: 1rem;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(127, 57, 251, 0.6);
}

.contact-form button:hover {
  background-color: #9e5dff;
  box-shadow: 0 0 25px #9e5dff;
}
/* Autofill Fix */
.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill {
  -webkit-text-fill-color: #fff; /* Visible text */
  transition: background-color 5000s ease-in-out 0s;
  caret-color: #fff;
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  padding: 12px;
  border-radius: 50%;
  z-index: 1000;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}



/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
  z-index: 1000;
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
}

/* Animation Keyframes */
@keyframes slideTop {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}


.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  padding: 12px 15px;
  color: white;
  border-radius: 8px;
  font-size: 1rem;
  margin-top: 6px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form textarea {
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.contact-form button {
  background-color: #7f39fb;
  color: #fff;
  border: none;
  padding: 12px 40px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #000000;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  padding: 12px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
  z-index: 1000;
}
.whatsapp-float img {
  width: 32px;
  height: 32px;
}

  .social-links {
    display: flex;
    gap: 15px;
  } */
  
  .social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 2px solid #0ef;
    border-radius: 50%;
    color: #0ef;
    font-size: 1.3rem;
    transition: all 0.3s;
  }
  
  .social-links a:hover {
    background: #0ef;
    color: #000;
    transform: translateY(-3px);
  }
  
  /* Minimal Footer */
  .site-footer {
    background: #000;
    padding: 15px 0;
    text-align: center;
    position: relative;
  }
  
  .footer-content p {
    color: #fff;
    font-size: 0.9rem;
    margin: 0;
  }
  
  .footer-content i {
    color: #0ef;
    margin: 0 3px;
  }
  
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0ef;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
  }
  
  .back-to-top.active {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top:hover {
    background: #fff;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .contact-header h2 {
      font-size: 2rem;
    }
    
    .contact-header h4 {
      font-size: 1rem;
    }
    
    .contact-info a {
      font-size: 1.rem;
    }

    
    
    .social-links a {
      width: 35px;
      height: 35px;
      font-size: 1.1rem;
    }
    
    .back-to-top {
      width: 35px;
      height: 35px;
      font-size: 1rem;
    }
  }
/* Tablet styles: Screens with width between 768px and 1024px */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    h1, h2 {
        font-size: 32px; /* Slightly smaller font size for tablets */
    }

    .contact-icons i {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin: 0px 15px 0px 0;
    }
}

/* Large Screens (desktops and laptops) */
@media screen and (min-width: 1025px) {
    h1, h2 {
        font-size: 40px; /* Larger font size for desktops */
    }

    .container {
        width: 80%;
        margin: 0 auto;
    }
}

/* Adjust for smaller screen elements like navigation */
@media screen and (max-width: 480px) {
    .contact-list li {
        font-size: 16px;
        text-align: center;
    }

    .contact-icons i {
        width: 30px;
        height: 30px;
        font-size: 15px;
        margin: 0px 5px 0px 0;
    }
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    overflow: hidden;
}

.text {
    font-size: 40px;
    font-weight: bold;
    color: #fff; /* White color */
    display: inline-block;
    min-width: 250px; /* Adjust based on the longest text */
    min-height: 40px; /* Ensures space remains even when text is deleted */
    text-align: left;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif; /* Change to any font you prefer */
    animation: fadeIn 1.5s ease-in-out;
}

.text::after {
    content: "";
    font-size: 28px; /* Increase size */
    font-weight: bold;
    color: #fff; /* White color */
    animation: blink 0.8s infinite;
}

/* Blinking effect */
@keyframes blink {
    50% {
        opacity: 0;
    }
}

.logo {
    position: relative;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    letter-spacing: 5px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
    opacity: 0;
    animation: slideUP .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.navbar a:hover {
    color: #0ef;
    text-decoration: underline;
}



/* Home Section */
.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    min-height: 100vh;
    background-color: black;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

/* Home content container */
.home-content {
    max-width: 600px;
    animation: fadeIn 1s ease-in forwards;
}

/* Header Text Animations */
.name-container {
    position: relative;
    display: inline-block;
    opacity: 0;  /* Initially hidden */
    animation: fadeIn 0.5s ease forwards;  /* Applying fade-in animation */
    animation-delay: 0.5s; /* Delay for fade-in animation */
}

/* Name (RAVIPRASAD) */
.name {
    font-size: 56px;
    font-weight: 700;
    margin: -3px 0;
    letter-spacing: 5px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #0ef;  /* Blue color */
    opacity: 0; /* Initially hidden */
    animation: fadeIn 0.2s ease forwards;  /* Applying fade-in animation */
    animation-delay: 0.2s; /* Delay slightly longer than container fade-in */
}

/* Keyframes for Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.line {
    width: 100%;
    height: 2px;
    background-color: #0ef;
    margin-top: 10px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
    animation-delay: 2s;
}




/* Button Animation (Download Resume) */
.btn-box {
    display: inline-block;
    padding: 12px 30px;
    background: #00fefb;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: none; /* No glow by default */
    transition: all 0.3s ease;
}

.btn-box:hover {
    box-shadow: 0 0 25px #00fefb, 0 0 50px #00fefb, 0 0 100px #00fefb;
    transform: translateY(-3px);
}

/* Keyframes for Animations */

/* Slide from Bottom */
@keyframes slideBottom {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Fade In */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Slide from Top */
@keyframes slideTop {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.img {
    display: inline-block;
    left: 55%;
    bottom: 1%;
    margin-right: 5%;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: absolute;
    opacity: 0;
    animation: slideUP 1s ease forwards;
    animation-delay: 1s;
}

.imgline {
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin: 20px auto; 
    text-align: center;
}

.responsive {
    max-width: 100%; 
    height: auto;
}

.responsive {
    width: 100%;
    height: auto;
    border-top-left-radius: 251px;
    border-top-right-radius: 251px;
    border-bottom-left-radius: 251px;
    border-bottom-right-radius: 251px;
}

/* About Section */
#about, #skills {
  margin-top: 0;
  margin-bottom: 0;
}

.about {
    background-color: black;
    display: grid;
    grid-template-columns: repeat(2, .5fr);
    width: 100%;
    justify-content: space-between;
    padding: 70px 5% 50px; /* Add bottom padding if needed */
}


.about-img {
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    padding-right: 10%;
    margin-top: 2.5%;
    opacity: 1;
}
/* About Image Hover Effect (Matches Profile Image) */
.about-img img.abt-res {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent; /* Match your profile image's border */
}

.about-img:hover img.abt-res {
  /* Identical to profile image hover */
  transform: scale(1.02);
  filter: brightness(1.08);
  cursor: pointer;
  
  /* Blue Glow Effect */
  box-shadow: 
    0 0 15px rgba(0, 238, 255, 0.7),
    0 0 30px rgba(0, 238, 255, 0.4);
  
  /* Border Pulse */
  border-color: rgba(0, 238, 255, 0.5);
  animation: borderPulse 1.5s infinite;
}

/* Keyframes (same as profile image) */
@keyframes borderPulse {
  0% { border-color: rgba(0, 238, 255, 0.3); }
  50% { border-color: rgba(0, 238, 255, 0.8); }
  100% { border-color: rgba(0, 238, 255, 0.3); }
}
.abt-res {
    width: 100%;
    height: auto;
    max-width: 492px;
    max-height: 492px;
    border-radius: 90px;
    border: rgba(0, 238, 255, 0) 5px solid;
}

.about-text {
    margin-right: 1%;
}

.about-text h2 {
    font-size: 60px;
    letter-spacing: 5px;
    text-align: center;
}

.about-text h2 span {
    color: #0ef;
}

.about-text p {
    color: aliceblue;
    font-size: 20px;
    line-height: 2;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    text-align: justify;
    text-justify: inter-word;
}

.abtbtn-box {
    display: inline-block;
    padding: 12px 28px;
    background: #0ef;
    border-radius: 40px;
    font-size: 15px;
    text-align: center;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
}

.abtbtn-box:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50pc cyan, 0 0 100px cyan, 0 0 200px cyan;
}

/* Skills Section */
#skills {
    background-color: #000;
    padding: 10px 0;
    
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #0ef;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
    border-color: #fff;
}

.skill-card i {
    font-size: 50px;
    color: #0ef;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.2);
    color: #fff;
}

.skill-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.skill-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
}

.subtitle span {
    color: #0ef;
}

.sec {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 0px;
}

.container1 {
    width: 600px;
    max-height: 500px;
    padding: 10px;
    margin-left: 100px;
}

.container2 {
    width: 600px;
    max-height: 500px;
    padding: 10px;
    margin-left: 100px;
}

.heading1 {
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 5px;
    margin-bottom: 0px;
}

.bar {
    font-size: 23px;
}

.Technical-bars .bar {
    margin-top: 40px 0;
    padding: 5px;
}

.Technical-bars .bar:first-child {
    margin-top: 0;
}

.Technical-bars .bar:last-child {
    margin-bottom: 0;
}

.Technical-bars .bar .info {
    margin-bottom: 5px;
}

.Technical-bars .bar .info span {
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.Technical-bars .bar .progress-line {
    position: relative;
    border-radius: 10px;
    width: 100%;
    height: 5px;
    background-color: #000;
    animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.Technical-bars .bar .progress-line span {
    height: 100%;
    background-color: #0ef;
    position: absolute;
    border-radius: 10px;
    animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

.progress-line.html span {
    width: 90%;
}

.progress-line.css span {
    width: 80%;
}

.progress-line.python span {
    width: 75%;
}

.progress-line.java span {
    width: 50%;
}

.progress-line.cpls span {
    width: 40%;
}

.progress-line span::after {
    position: absolute;
    padding: 1px 8px;
    background-color: #000;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    top: -28px;
    right: -20px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}

.progress-line.html span::after {
    content: "90%";
}

.progress-line.css span::after {
    content: "80%";
}

.progress-line.python span::after {
    content: "75%";
}

.progress-line.java span::after {
    content: "50%";
}

.progress-line.cpls span::after {
    content: "40%";
}

.progress-line span::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-bottom-width: 0px;
    border-right-width: 0px;
    border-top-color: #000;
    top: -10px;
    right: 0;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 0;
}

.radial-bars {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: flex-start;
}

.radial-bars .radial-bar {
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;
}

.radial-bars .radial-bar svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}

.radial-bars .radial-bar .progress-bar {
    stroke-width: 10;
    stop-color: black;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
    animation: animate-bar 1s linear forwards;
}

.path {
    stroke-width: 10;
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}

.path.path-1 {
    animation: animate-path1 1s 1s linear forwards;
}

.path.path-2 {
    animation: animate-path2 1s 1s linear forwards;
}

.path.path-3 {
    animation: animate-path3 1s 1s linear forwards;
}

.path.path-4 {
    animation: animate-path4 1s 1s linear forwards;
}

.radial-bar .percentage {
    position: absolute;
    align-items: center;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.radial-bar .text {
    width: 100%;
    position: absolute;
    text-align: center;
    left: 15%;
    bottom: 5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

/* Project Section Title */
.section-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 30px;
  padding-left: 20px;
}

/* Project Section Container */
.serv-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding: 10px 20px 30px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.serv-container::-webkit-scrollbar {
  display: none;
}

/* Project Card */
.row {
  flex: 0 0 300px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #11111100;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.row:hover {
  transform: scale(1.02);
}

/* Project Image */
.row img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  padding: 10px;
  box-sizing: border-box;
}

/* Hover Overlay */
.layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 250px;
  background: linear-gradient(rgba(255, 255, 255, 0.5), #0ef);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 8px;
  transition: opacity 0.5s ease;
  padding: 10px;
}

.row:hover .layer {
  opacity: 1;
}

.layer h5 {
  font-size: 16px;
  color: #000;
  font-weight: bold;
  margin-bottom: 10px;
}

.layer p {
  font-size: 14px;
  color: #000;
  line-height: 1.5;
  max-width: 90%;
}

.layer i {
  margin-top: 15px;
  font-size: 22px;
  background: #000;
  color: #0ef;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Hide scrollbars across browsers */
.serv-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.serv-container {
    -ms-overflow-style: none; /* IE & Edge */
    scrollbar-width: none;     /* Firefox */
}

/* Project Card Wrapper */
.row {
    flex: 0 0 auto; /* Keep each card same size, no shrink */
    scroll-snap-align: start;
    min-width: 300px; /* Customize based on card width */
    position: relative;
    border-radius: 50px;
    cursor: pointer;
    padding: 0px;
    overflow: hidden;
}

/* Project Image */
.row img {
    width: 100%;
    max-width: 400px;
    max-height: 300px;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s ease;
    padding: 10px;
}

/* Slide Animation (Optional) */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* Apply animation to project cards */
.serv-container .row {
    animation: slide 10s linear infinite;
}

/* Pause animation on hover */
.serv-container:hover .row {
    animation-play-state: paused;
}

/* Overlay layer on hover */
.layer {
    width: 100%;
    max-width: 400px;
    max-height: 250px;
    height: auto;
    opacity: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.5), #0ef);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1px;
    transition: height 0.5s, opacity 0.5s;
}

/* Text inside overlay */
.layer h5 {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.layer p {
    color: black;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    text-overflow: ellipsis;
    max-width: 95%;
    text-align: justify;
}

/* Icon inside overlay */
.layer i {
    color: #0ef;
    margin-top: 20px;
    font-size: 20px;
    background: #000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hover effects */
.row:hover img {
    transform: scale(1.01);
}
.row:hover .layer {
    height: 100%;
    opacity: 1;
}

/* Services Section */
#Services {
    background-color: #000;
}

.sub-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.sub-title span {
    color: #0ef;
}

/* Services Section */
#Services {
    background-color: #000;
    padding: 100px 0;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }
  
  .service-card {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00eeff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
    background: rgba(0, 238, 255, 0.05);
  }
  
  .service-card i {
    font-size: 50px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
  }
  
  .service-card:hover i {
    transform: scale(1.2);
    text-shadow: 0 0 15px #00eeff;
  }
  
  .service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
  }
  
  .service-card p {
    color: #ccc;
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 480px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
  }
.read {
    display: inline-block;
    padding: 12px 20px;
    background: #0ef;
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 1s;
}

.read:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50pc cyan, 0 0 100px cyan, 0 0 200px cyan;
}

.prj-list div:hover {
    transform: translateY(-2px);
}
/* Contact Section */
.contacts {
    display: grid;
    align-items: center;
    gap: 3rem;
    padding: 40px;
    padding-top: 70px;
    justify-content: center;
    background-color: #000;
}

.contact-text {
    text-align: left;
    margin-left: 200px;
    align-content: center;
}

.contact-text h2 {
    font-size: 60px; /* Consistent with CSS1 */
    line-height: normal;
    text-align: left;
    margin-left: -80px; /* Consistent with CSS1 */
}

.contact-text h2 span {
    color: #0ef; /* Keeps the blue color */
}

.contact-text h4 {
    margin: 0px 0;
    color: rgb(228, 228, 228);
    font-size: 20px;
    font-weight: 60;
    text-align: left;
    margin-left: 10px;
}

.contact-list {
    margin-bottom: 3rem;
}

.contact-list li {
    margin-bottom: 5px;
    display: block;
    letter-spacing: 2px;
}

.contact-list i {
    display: inline-block;
    color: #0ef;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s ease;
    padding: 10px;
}

.contact-icons i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 50%;
    font-size: 20px;
    color: #0ef;
    text-decoration: none;
    margin: 0px 15px 0px 0;
    opacity: 1;
}

.contact-icons i:hover {
    background: #0ef;
    color: #000;
    box-shadow: 0 0 20px #0ef;
}

.last-text {
    width: 100%;
    text-align: center; /* Center the text */
    padding: 2px 0; /* Adjust padding */
    background: black;
    font-weight: 300;
    margin: 0; /* Remove extra margin */
}

.last-text p {
    margin: 10; /* Remove default paragraph margin */
    font-size: 30px; /* Adjust font size */
    color: white; /* Ensure text color is white */
}

.last-text i {
    vertical-align: middle; /* Align the icon properly */
}

/* Responsive Media Queries for Contact Section */
@media (max-width: 900px) {
    .contact-text h2 {
        font-size: 50px; /* Adjusted for smaller screens */
        margin-left: 0; /* Reset margin for better alignment */
    }

    .contact-text h4 {
        font-size: 18px; /* Adjusted for smaller screens */
    }

    .contact-icons i {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact-text h2 {
        font-size: 40px; /* Further adjusted for mobile screens */
    }

    .contact-text h4 {
        font-size: 16px;
    }

    .contact-icons i {
        width: 30px;
        height: 30px;
        font-size: 15px;
    }
}

/* Top Button */
.top {
    position: fixed;
    bottom: 2.1rem;
    left: 1rem;
    display: flex;
    opacity: 0;
    transition: all .4s;
}

.top.active {
    bottom: 32px;
    pointer-events: auto;
    opacity: 1;
}

.top i {
    color: black;
    background: #0ef;
    font-size: 20px;
    padding: 10px;
    border-radius: 0.5rem;
}

.top i:hover {
    box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan, 0 0 200px cyan;
}

/* Keyframes for Animations */
@keyframes animate-path1 {
    100% {
        stroke-dashoffset: 180;
    }
}

@keyframes animate-path2 {
    100% {
        stroke-dashoffset: 140;
    }
}

@keyframes animate-path3 {
    100% {
        stroke-dashoffset: 90;
    }
}

@keyframes animate-path4 {
    100% {
        stroke-dashoffset: 50;
    }
}

@keyframes animate-bar {
    100% {
        stroke-dashoffset: -1;
    }
}

@keyframes showText {
    100% {
        opacity: 1;
    }
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideUP {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* ===== Profile Image - Optimized ===== */
.profile-img-container:hover img.responsive {
  transform: scale(1.02); /* Tiny zoom effect */
  filter: brightness(1.03); /* Slight lightening */
  cursor: pointer; /* Indicates interactivity */
  /* Blue Glow Effect */
  box-shadow: 
    0 0 15px rgba(0, 238, 255, 0.7),
    0 0 30px rgba(0, 238, 255, 0.4);
  
  /* Brightness Boost */
  filter: brightness(1.08);
  
  /* Subtle Scale */
  transform: scale(1.02);
  
  /* Border Pulse */
  border: 1px solid rgba(0, 238, 255, 0.5);
  animation: borderPulse 1.5s infinite;
  
}

@keyframes borderPulse {
  0% { border-color: rgba(0, 238, 255, 0.3); }
  50% { border-color: rgba(0, 238, 255, 0.8); }
  100% { border-color: rgba(0, 238, 255, 0.3); }
}
/* Profile Image Styling */
/* Profile Image Container - Now only for positioning */
.profile-img-container {
  position: absolute;
  right: 10%;
  bottom: 32%; /* Slightly lowered position */
  width: 600px; /* Increased size */
  height: 320px;
  animation: slideUP 1s ease forwards;
  animation-delay: 1s;
  opacity: 0;
  z-index: 10;
}

/* Profile Image - Display at natural size */
.profile-img-container img.responsive {
  display: block; /* Remove inline spacing */
  max-width: 100%; /* Prevent overflow */
  height: auto; /* Maintain aspect ratio */
  border-radius: 12px;
  transition: transform 0.3s ease, filter 0.3s ease;
  /* No forced dimensions - uses image's native size */
}
/* Add these media queries at the end of your existing CSS */
@media (max-width: 992px) { /* Tablet */
  .profile-img-container {
    width: 450px;
    height: 240px;
    right: 5%;
    bottom: 25%;
  }
}

@media (max-width: 768px) { /* Mobile */
  .profile-img-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 600/320; /* Maintains your original proportion */
    right: auto;
    bottom: auto;
    margin: 30px auto;
    display: block;
  }
}

@media (max-width: 480px) { /* Small Mobile */
  .profile-img-container {
    max-width: 300px;
  }
}
/*====================
/* Animation Only */
@keyframes slideUP {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .profile-img-container {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 30px auto;
    text-align: center;
  }
}
/* General Mobile Styles (applies to all screens below 768px) */
@media (max-width: 767px) {
    /* Header/Navigation */
    .header {
      padding: 15px 5%;
    }
    
    .navbar {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background: #000;
      flex-direction: column;
      align-items: center;
      padding: 40px 0;
      transition: 0.5s;
      z-index: 99;
    }
    
    .navbar.active {
      left: 0;
    }
    
    .navbar a {
      margin: 15px 0;
      font-size: 20px;
    }
    
    /* Home Section */
    .home {
      flex-direction: column;
      padding: 100px 5% 50px;
      text-align: center;
    }
    
    .home-content {
      max-width: 100%;
    }
    
    .img {
      position: relative;
      left: 0;
      margin: 30px auto;
    }
    
   
    /* About Section */
    .about {
      grid-template-columns: 1fr;
      padding: 50px 5%;
    }
    
    .about-img {
      padding-right: 0;
      margin: 0 auto;
    }
    
    .about-text {
      margin-right: 0;
      text-align: center;
    }
    
    .about-text p {
      text-align: center;
    }
    
    /* Skills Section */
    .sec {
      flex-direction: column;
    }
    
    .container1, .container2 {
      width: 100%;
      margin-left: 0;
      padding: 20px;
    }
    
    /* Projects Section */
    .serv-container {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .row {
      width: 100%;
      margin-bottom: 20px;
    }
    
    .row img {
      width: 100%;
    }
    
    /* Services Section */
    .prj-list {
      grid-template-columns: 1fr;
    }
    
    /* Contact Section */
    .contact-text {
      margin-left: 0;
      text-align: center;
    }
    
    .contact-text h2 {
      margin-left: 0;
    }
    
    .contact-list {
      text-align: center;
    }
    
    .contact-icons {
      justify-content: center;
    }
  }
  /* Remove the mobile-specific styles that were making projects stack */
@media (max-width: 767px) {
    /* Remove or comment out these lines that were in the previous responsive CSS */
    /*
    .serv-container {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .row {
      width: 100%;
      margin-bottom: 20px;
    }
    */
    
    /* Instead, add these styles to maintain horizontal scrolling */
    .serv-container {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
      padding-bottom: 20px; /* Space for scrollbar */
      flex-wrap: nowrap;
    }
    
    .row {
      display: inline-block;
      width: 300px; /* Fixed width for each project card */
      margin-right: 20px;
      vertical-align: top;
      white-space: normal; /* Allow text wrapping inside cards */
    }
    
    /* Hide scrollbar visually but keep functionality */
    .serv-container::-webkit-scrollbar {
      height: 5px;
    }
    
    .serv-container::-webkit-scrollbar-track {
      background: #000;
    }
    
    .serv-container::-webkit-scrollbar-thumb {
      background: #0ef;
      border-radius: 10px;
    }
  }
  
  /* Ensure consistent behavior on all devices */
  .serv-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
  }
  
  .row {
    scroll-snap-align: start;
    min-width: 300px; /* Minimum width for each project card */
    flex: 0 0 auto;
  }
  
  /* Small Mobile Devices (below 480px) */
  @media (max-width: 480px) {
    /* Typography */
    h1, h2 {
      font-size: 28px;
    }
    
    .name {
      font-size: 36px;
    }
    
    
    /* About Section */
    .about-text h2 {
      font-size: 40px;
    }
    
    .about-text p {
      font-size: 16px;
    }
    
    /* Skills Section */
    .subtitle, .main-text h2, .sub-title {
      font-size: 40px;
      padding-bottom: 40px;
      padding-top: 40px;
      
    }
    
    /* Contact Section */
    .contact-text h2 {
      font-size: 40px;
    }
    
    .contact-text h4 {
      font-size: 16px;
    }
  }
  
  /* ============ Hamburger Menu ============ */
  .menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 100;
  }
  
  .menu-toggle i {
    color: white;
    font-size: 28px;
  }
  
  @media (max-width: 767px) {
    .menu-toggle {
      display: block;
    }
  }

/* Global Styles */
:root {
    --primary-color: #0ef;
    --secondary-color: #00eeff;
    --dark-bg: #000;
    --text-light: #fff;
    --text-gray: #ccc;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    scroll-behavior: smooth;
}

section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    transition: all 0.3s ease;
}

header .logo {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header nav a {
    color: var(--text-light);
    margin: 0 15px;
    font-size: 16px;
    text-decoration: none;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: 0.4s;
}

header nav a:hover::after {
    width: 100%;
}

/* Home Section */
#home {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: linear-gradient(to right, #000, #111);
}

#home h1 {
    font-size: 3rem;
    color: var(--text-light);
}

#home p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* About Section */
#about {
    background: #111;
    text-align: center;
}

#about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#about p {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Skills */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 40px;
    text-align: center;
}

.skill {
    background-color: #111;
    border: 2px solid var(--primary-color);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.skill:hover {
    transform: translateY(-5px);
    background: rgba(0, 238, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 238, 255, 0.3);
}

.skill h4 {
    color: var(--text-light);
    font-size: 18px;
    margin-top: 10px;
}

/* Projects Section */
#projects {
    background: #000;
    padding: 100px 0;
}

.serv-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    padding-bottom: 10px;
    margin-top: 30px;
    -webkit-overflow-scrolling: touch;
    
}

.serv-container::-webkit-scrollbar {
    display: none;
}
.serv-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.row {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 300px;
    position: relative;
    border-radius: 50px;
    cursor: pointer;
    padding: 0px;
    overflow: hidden;
}

.row img {
    width: 200%;
    max-width: 400px;
    max-height: 300px;
    border-radius: 20px;
    display: block;
    transition: transform 0.5s;
    padding: 10px;
}

.layer {
    width: 200%;
    max-width: 400px;
    max-height: 250px;
    height: auto;
    opacity: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.5), #0ef);
    position: absolute;
    border-radius: 8px;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1px;
    transition: height 0.5s, opacity 0.5s;
}

.layer h5 {
    color: #000;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.layer p {
    color: black;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 95%;
    text-align: justify;
}

.layer i {
    color: #0ef;
    margin-top: 20px;
    font-size: 20px;
    background: #000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img {
    transform: scale(1.01);
}

.row:hover .layer {
    height: 100%;
    opacity: 1;
}

/* Contact Section */
#contact {
    background-color: #111;
    padding: 80px 0;
    text-align: center;
    
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--text-light);
    resize: none;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--dark-bg);
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.contact-form button:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* Contact List Links */
.contact-list a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.contact-list a:hover {
    color: #007BFF;
    text-decoration: underline;
}
footer {
  margin-top: 0;
  padding-top: 10px;
}