/* ======================== Root Variables ========================  */
:root {
  /* Core Colors */
  --blue-color: #0099ff;
  --fade-blue1: #3D90D7;
  --fade-blue2: #7AC6D2;
  --icon-color: #FFD700;

  /* Layout */
  --header-height: 80px;
  --transition-speed: 0.3s;
  --bg-color: white;
  --text-color: black;
  --nav-bg: white;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Card System */
  --card-bg: #F9F9F9;
  --card-border: rgba(120, 120, 120, 0.2);
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --card-hover-shadow1: 0 6px 12px rgba(0, 0, 0, 0.08);
  --card-hover-shadow2: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-theme {
  --bg-color: #0e121b;
  --text-color: #f0f0f0;
  --nav-bg: #0e121b;
  --shadow-color: rgba(255, 255, 255, 0.1);
  --icon-color: #ffffff;

  --card-bg: #161b25;
  --card-border: rgba(180, 180, 180, 0.15);
  --card-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
  --card-hover-shadow1: 0 6px 12px rgba(255, 255, 255, 0.08);
  --card-hover-shadow2: 0 2px 4px rgba(255, 255, 255, 0.1);
}
/* ======================== Universal Properties ========================  */

body {
  overflow-x: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Ubantoo */
.ubuntu-light {
  font-family: "Ubuntu", sans-serif;
}

/* Righteous*/
.righteous-regular {
  font-family: "Righteous", sans-serif;
}

/* Roboto */
.roboto {
  font-family: "Roboto", sans-serif;
}

h1 {
  font-family: "Ubuntu", sans-serif;
}

h2 {
  font-family: "Ubuntu", sans-serif;
  font-weight: 500;
}

p {
  font-family: "Roboto", sans-serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  max-width: 100%;
  scroll-behavior: smooth;
}

button,
a,
i,
img {
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  margin: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

/* ======================== All section Animation ========================  */
#home,
#About-section,
#Servics-section,
#Projects-section,
#Blog-section,
#Contact-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

#home.visible,
#About-section.visible,
#Servics-section.visible,
#Projects-section.visible,
#Blog-section.visible,
#Contact-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home section starts further down by default */
#Home-Section {
  transform: translateY(100px);
}

/* Desktop smoother bounce effect for sections */
#About-section,
#Servics-section,
#Projects-section,
#Blog-section,
#Contact-section {
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ===== ADJUST FOR SMALL DEVICES ===== */
@media (max-width: 400px) {

  #home,
  #About-section,
  #Servics-section,
  #Projects-section,
  #Blog-section,
  #Contact-section {
    transform: translateY(15px);
    /* Less move distance */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    /* Smooth and gentle */
  }

  #Home-Section {
    transform: translateY(30px);
    /* Smaller for home too */
  }

  #About-section,
  #Servics-section,
  #Projects-section,
  #Blog-section,
  #Contact-section {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }
}


/* Universal MEdia qury */
@media screen and (max-width: 400px) {

  .services-para,
  .Projects-para,
  .Blog-para {
    font-size: 13px;
  }
}
/* PRELOADER STYLES */
#preloader {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 0 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(5px);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.logo-container {
  position: relative;
  width: 190px;
  height: 190px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rotateBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes rotateBorderInner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

#preloader img {
  width: 95%;
  height: 95%;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  position: relative;
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 5px 25px rgba(0, 119, 255, 0.1);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

#typing-container {
  position: relative;
  max-width: 90%;
  margin: 0 auto;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

#typing-text {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.3px;
  padding: 0 5px;
  position: relative;
}

#typing-text span {
  opacity: 0;
  transform: translateY(10px);
  display: inline-block;
  transition: all 0.4s ease;
}

#typing-text span.visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-container {
  width: min(280px, 80%);
  height: 6px;
  background: rgba(0, 100, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 25px auto 10px;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0077ff, #00a8ff);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.hide {
  animation: fadeOut 0.8s ease-out forwards;
  pointer-events: none;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 600px) {
  .logo-container {
    width: 120px;
    height: 120px;
  }
  #typing-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .logo-container {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
  }
  #typing-text {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  #typing-text {
    font-size: 0.95rem;
  }
  .progress-container {
    margin-top: 15px;
  }
}

@media (max-width: 300px) {
  .logo-container {
    width: 85px;
    height: 85px;
    margin-bottom: 15px;
  }
  #typing-text {
    font-size: 0.9rem;
    letter-spacing: 0.2px;
  }
  .progress-container {
    height: 5px;
    margin-top: 10px;
  }
}

section {
  overflow-x: hidden;
}

.blue-color-span {
  color: var(--blue-color);
}

/* ======================== Header Section ========================  */
header {
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7%;
  z-index: 1000;
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-color);
  transition: color var(--transition-speed);
}

.logo h2 {
  color: var(--blue-color);
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links {
  display: flex;
  gap: 25px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: color var(--transition-speed);
}

nav h3 {
  font-size: 13px;
  font-family: "Roboto", sans-serif;
  font-weight: 510;
  position: relative;
  padding: 5px 0;
  color: var(--text-color);
  transition: color var(--transition-speed);
}

.nav-links a h3::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--blue-color);
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover h3::after,
.nav-links a.active h3::after {
  width: 100%;
  left: 50%;
}

.nav-links a:hover h3 {
  color: var(--blue-color);
}

.contact-btn {
  padding: 10px 50px;
  border-radius: 10px;
  border: none;
  background: var(--blue-color);
  color: white;
  font-family: sans-serif;
  font-weight: 600;
  cursor: pointer;
  word-wrap: nowrap;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 6px rgba(0, 153, 255, 0.2);
}

.contact-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-btn:hover {
  background: #0080e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 153, 255, 0.3);
}

.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
}

.theme-toggle-btn i {
  font-size: 1.5rem;
  color: var(--icon-color);
  transition: color var(--transition-speed), transform var(--transition-speed);
}

.theme-toggle-btn:hover i {
  transform: scale(1.1) rotate(15deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 25px;
  position: fixed;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 30px;
  border-radius: 12px;
  z-index: 1002;
  transition: all 0.3s ease;
}

.nav-links.scrolled {
  background-color: rgb(255, 255, 255);
  padding: 8px 20px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .nav-links {
    gap: 20px;
    position: relative;
    top: unset;
    left: unset;
    transform: none;
    padding: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    border-radius: 0;
    flex-direction: column;
    align-items: center;
  }

  .nav-right {
    flex-direction: column;
    gap: 20px;
  }

  .contact-btn {
    padding: 8px 20px;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--nav-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    transition: right 0.4s ease;
    z-index: 999;
    box-shadow: -5px 0 15px var(--shadow-color);
  }

  nav.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* Glowing effect for moon in dark mode */
.dark-theme .theme-toggle-btn i {
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

/* Extra Small Screens (below 450px) */
@media (max-width: 450px) {

  :root {
    --header-height: 60px;
  }

  header {
    padding: 14px 5%;
  }

  .logo h1 {
    font-size: 1.5rem;
    gap: 0px;
  }

  .logo i {
    font-size: 1.1rem;
  }

  .hamburger {
    width: 20px;
    height: 17px;
  }

  .hamburger span {
    height: 2px;
  }

  nav {
    width: 85%;
    gap: 25px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links h3 {
    font-size: 11px !important;
  }

  .nav-right {
    gap: 20px;
  }

  .contact-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .theme-toggle-btn i {
    font-size: 1.2rem;
  }

  section h1 {
    font-size: 1.8rem;
    padding: 0 15px;
  }
}

/* DESKTOP ONLY (for scroll effect on nav-links center) */
@media (min-width: 1025px) {
  .nav-links {
    position: fixed;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 30px;
    border-radius: 12px;
    z-index: 1002;
    transition: all 0.3s ease;
  }

  .nav-links.scrolled {
    text-align: center;
    position: fixed;
    top: 0;
    width: 98%;
    background-color: #ffffff;
    padding: 10px 0;
    z-index: 999;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-radius: 30px;
    list-style: none;
  }

  .blue-color-text {
    color: var(--blue-color);
    font-size: 1.5rem;
  }
}

.nav-links.scrolled {
  background-color: var(--nav-bg);
  color: var(--text-color);
}

/* ======================== About Section ========================  */

#home.disable-animation {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

#home {
  height: auto;
  scroll-margin-top: 100px;
}

.hero-section {
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10vh 5%;
  margin-top: 0;
}

.hero-content {
  width: 50%;
  min-height: 50vh;
  padding: 10vh 1vw;
  margin-left: 1vw;
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 750;
  margin-top: 5px;
}

.animated-text {
  margin: 8px 0;
  font-family: "Ubantu", sans-serif;
  font-size: 1.7rem;
}

.animated-text span {
  font-size: 2rem;
  font-weight: 600;
}

#text {
  color: var(--blue-color);
}

.animated-text .blinking-cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--blue-color);
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.hero-content p {
  width: 80%;
  font-size: 15px;
  padding: 5px;
  line-height: 25px;
}

.role-keyword {
  color: var(--blue-color);
  font-size: 18px;
  font-weight: 600;
}

.greeting {
  font-size: 1.4rem;
  font-weight: 450;
  margin-bottom: 10px;
}

.highlight-name {
  color: var(--blue-color);
  cursor: pointer;
}

.hero-image {
  width: 40%;
  max-width: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-right: 5vw;
  padding-top: 0;
  margin-top: 0;
}

.hero-image img {
  width: 95%;
  height: auto;
  object-fit: contain;
  display: block;
  margin-top: 0;
  padding-top: 0;
  animation: hu__hu__ infinite 3s ease-in-out;
}

@keyframes hu__hu__ {
  50% {
    transform: translateY(10px);
  }
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  margin: 12px 2px;
  gap: 8px;
  flex-wrap: wrap;
}

/* Button Styles */
button {
  font-weight: bold;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  width: 90.02px;
  height: 40.66px;
  border: none;
  background-color: var(--blue-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

button .btn-text-default {
  display: flex;
  overflow: hidden;
}

button:hover .btn-text-default {
  position: absolute;
}

button:hover .btn-text-default span {
  transform: translateY(1.2em);
}

button .btn-text-default span {
  transition: transform 0.2s;
}

button .btn-text-hover {
  display: flex;
  position: absolute;
  overflow: hidden;
}

button .btn-text-hover span {
  transform: translateY(-1.2em);
}

button:hover .btn-text-hover span {
  transform: translateY(0);
}

button .btn-text-hover span,
button .btn-text-default span {
  transition: transform 0.2s;
}

button .btn-text-default span:nth-child(1) {
  transition-delay: 0s;
}

button .btn-text-default span:nth-child(2) {
  transition-delay: 0.05s;
}

button .btn-text-default span:nth-child(3) {
  transition-delay: 0.1s;
}

button .btn-text-default span:nth-child(4) {
  transition-delay: 0.15s;
}

button .btn-text-default span:nth-child(5) {
  transition-delay: 0.2s;
}

button .btn-text-default span:nth-child(6) {
  transition-delay: 0.25s;
}

button .btn-text-hover span:nth-child(1) {
  transition-delay: 0s;
}

button .btn-text-hover span:nth-child(2) {
  transition-delay: 0.05s;
}

button .btn-text-hover span:nth-child(3) {
  transition-delay: 0.1s;
}

button .btn-text-hover span:nth-child(4) {
  transition-delay: 0.15s;
}

button .btn-text-hover span:nth-child(5) {
  transition-delay: 0.2s;
}

button .btn-text-hover span:nth-child(6) {
  transition-delay: 0.25s;
}

/* CV Button */
.btn-cv {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  padding: 0.2em 1.5em;
  min-width: 120px;
  height: 40.66px;
  background-color: var(--blue-color);
  text-decoration: none;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  box-shadow: 0.5em 0.5em 0.5em rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.btn-cv:hover::before {
  position: absolute;
  content: '';
  height: 0;
  width: 0;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(33, 33, 33, 1) 0%, rgba(33, 33, 33, 1) 50%, rgb(84, 72, 255) 50%, rgb(45, 66, 255) 60%);
  border-radius: 0 0 0.5em 0;
  box-shadow: 0.2em 0.2em 0.2em rgba(0, 0, 0, 0.3);
  transition: 0.3s;
}

.btn-cv:hover::before {
  width: 1.6em;
  height: 1.4em;
}

button:active,
.btn-cv:active {
  box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.3);
  transform: translate(0.1em, 0.1em);
}

/* ===================== RESPONSIVE MEDIA QUERIES ===================== */

/* ===== Between 1050px to 880px ===== */
@media screen and (max-width: 1070px) and (min-width: 830px) {

  .hero-section {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 15vh 4%;
    margin-top: 0;
  }

  .hero-content {
    width: 50%;
    min-height: 50vh;
    padding: 5vh 1vw;
    margin-left: 1vw;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    font-weight: 750;
    margin-top: 5px;
  }

  .animated-text {
    margin: 10px 0;
    font-family: "Ubantu", sans-serif;
    font-size: 1.6rem;
  }

  .animated-text span {
    font-size: 2rem;
    font-weight: 700;
  }

  #text {
    color: var(--blue-color);
  }

  .animated-text .blinking-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--blue-color);
    animation: blink 0.7s infinite;
    margin-left: 2px;
  }

  .hero-image {
    width: 40%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    align-items: start;
    padding-right: 1vw;
    padding-top: 2vh;
    margin-top: 0;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-top: 0;
    padding-top: 0;
    animation: hu__hu__ infinite 3s ease-in-out;
  }

}

@media screen and (max-width: 830px) and (min-width: 250px) {

  .hero-section {
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    margin-top: 0;
  }

  .hero-content {
    width: 100%;
    min-height: 50vh;
  }

  .hero-content h1 {
    padding: 0;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 750;
    margin-top: 5px;
  }

  .greeting {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .animated-text {
    margin: 7px 0;
    font-family: "Ubantu", sans-serif;
    font-size: 1rem;
    font-weight: 700;
  }

  .animated-text span {
    font-size: 1.5rem;
    font-weight: 700;
  }

  #text {
    color: var(--blue-color);
  }

  .animated-text .blinking-cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--blue-color);
    animation: blink 0.7s infinite;
    margin-left: 2px;
  }

  .hero-content p {
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 14px;
    line-height: 21px;
  }

  .role-keyword {
    font-size: 1rem;
  }

  .hero-buttons {
    margin: 10px 0;
  }

  .hero-buttons button {
    width: 80px;
    height: 40px;
    font-size: 13px;
    border-radius: 6px;
  }

  .hero-image {
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    padding-right: 0vw;
    padding-top: 0vh;
    margin-top: 0;
  }

  .hero-image img {
    width: 80%;
    height: auto;
    object-fit: contain;
    display: block;
    padding-bottom: 10px;
    margin-top: 0;
    padding-top: 0;
    animation: hu__hu__ infinite 3s ease-in-out;
  }
}
/* ======================== Home Section End ========================  */


/* ======================== Services Section ========================  */
#Servics-section {
  width: 100%;
  padding-top: 15vh;
  height: auto;
  padding-bottom: 3vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#Servics-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.services-para {
  margin-top: 1.5vh;
  max-width: 800px;
  line-height: 1.5;
  padding: 0 20px;
}

.servics-section-wrapper {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  padding: 2vh 4vw;
  margin: 6vh auto;
  justify-content: center;
}

.card {
  text-align: center;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

.card i {
  font-size: 50px;
  color: var(--blue-color);
  margin-bottom: 0.5rem;
}

.card h2 {
  margin: 0.5rem auto;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 600;
}

.card p {
  font-size: 0.9rem;
  line-height: 1.3;

}

.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 50px;
  height: auto;
  overflow: hidden;
  top: 0;
  right: 0;
  background-color: var(--blue-color);
  border-radius: 0 8px 0 32px;
}

.card1 {
  background-color: var(--nav-bg);
  color: var(--text-color);
}

.go-arrow {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}

.card1 {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 12px;
  padding: 30px 15px;
  text-decoration: none;
  z-index: 0;
  overflow: hidden;
  box-sizing: border-box;
  transition: transform 0.2s ease-in-out, background-color 0.3s, color 0.3s, box-shadow 0.3s;
  background-color: var(--card-bg);
  color: var(--text-color);
}

.card1:hover {
  transform: translateY(-5px);
}

.card1::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -12px;
  right: -12px;
  background: var(--blue-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.4s ease-out;
}

.card1:hover::before {
  transform: scale(35);
}

.card1:hover p {
  transition: all 0.3s ease-out;
  color: rgba(255, 255, 255, 0.8);
}

.card1:hover h2 {
  transition: all 0.3s ease-out;
  color: #fff;
}

.card1:hover i {
  transition: all 0.3s ease-out;
  color: #fff;
}

/* Tablet: Two columns starting from 760px down */
@media screen and (max-width: 830px) {
  .servics-section-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 4vh auto;
    padding: 1.5vh 6vw;
  }

  .card i {
    font-size: 50px;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 0.90rem;
    padding: 0;
    margin: 0;
  }
}

/* Specific adjustments for 750px - 830px */
@media screen and (min-width: 750px) and (max-width: 830px) {
  #servics-section {
    padding-top: 7vh;
  }

  .servics-section-wrapper {
    max-width: 700px;
    margin-left: 2vw;
    margin-right: 2vw;
  }

  .services-para p {
    margin: 10px 5px;
  }

  .card1 {
    padding: 25px 10px;
  }

  .card i {
    font-size: 40px;
  }

  .card h2 {
    font-size: 0.95rem;
  }

  .card p {
    font-size: 0.8rem;
  }
}

/* Mobile: One column below 430px */
@media screen and (max-width: 450px) {
  #Servics-section {
    padding-top: 0vh;
  }

  .servics-section-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 0 3vw;
    padding: 1vh 10vw;
  }

  .services-para p {
    margin: 5px 5px;
  }

  .card {
    margin: 10px auto;
  }

  .card i {
    font-size: 40px;
  }

  .card h2 {
    font-size: 0.95rem;
  }

  .card p {
    font-weight: 450;
    font-size: 0.8rem;
  }
}
/* ======================== Services Section End ========================  */


/* ======================== Projects Section ========================  */

.projects-section {
  width: 100%;
  padding: 10vh 10px 4vh;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.projects-section h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.Projects-para {
  margin-bottom: 20px;
  font-size: 1rem;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  user-select: none;
}

.project-card {
  background-color: var(--card-bg);
  color: var(--text-color);
  box-shadow: var(--card-shadow);
}

/* Remove hard-coded colors from text elements */
.project-card h2,
.project-card p {
  color: inherit;
}

.project-card {
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 16px 12px;
  max-width: 650px;
  width: 92%;
  transition: transform 0.4s ease;
  margin-bottom: 3vh;
}

.project-card i {
  margin-top: 10px;
  font-size: 5rem;
  display: inline-block;
  background: linear-gradient(125deg,
      #0099ff 0%,
      #0099ff 20%,
      #9214ff 80%,
      #8800ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.project-card h2 {
  font-size: 2rem;
  margin: 10px 0 8px;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btns a {
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: white;
  font-size: 12px;
  user-select: none;
}

.btn-demo {
  background-color: #0099ff;
}

.btn-code {
  background-color: #00c853;
}

.btn-demo:hover {
  background-color: #007acc;
}

.btn-code:hover {
  background-color: #00a244;
}

.swiper-pagination-bullet {
  background: #0099ff;
  opacity: 0.5;
  width: 6px;
  height: 6px;
  margin-top: 30px;
  transition: 0.3s;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--blue-color, #005ea3);
  font-size: 12px;
  font-weight: 900;
  width: 20px;
  height: 5px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .project-card {
    padding: 14px;
  }

  .project-card img {
    max-height: 200px;
  }

  .project-card h2 {
    font-size: 1.2rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .Projects-para {
    font-size: 13px;
    padding: 2px 5px;
  }

  .project-card {
    padding: 10px;
  }

  .project-card img {
    max-height: 160px;
  }

  .btns {
    flex-direction: row;
    gap: 8px;
  }

  .btns a {
    width: 48%;
    padding: 7px 0;
    font-size: 0.85rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .swiper-pagination {
    position: relative;
    margin-top: 15px;
  }
}
/* ======================== Pojects Section End ========================  */


/* ======================== Blog Section ========================  */
#Blog-section {
  width: 100%;
  height: auto;
  text-align: center;
  padding-top: 15vh;
  padding-bottom: 1rem;
  padding-left: 5%;
  padding-right: 5%;
}

#Blog-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  padding: 5px;
  margin-bottom: 1rem;
}

.blog-card-container {
  width: 100%;
  height: auto;
  padding: 5vh 5%;
  display: grid;
  justify-content: center;
  align-items: start;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards {
  margin: 0 auto;
  width: 100%;
  max-width: 280px;
  height: auto;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  background-color: var(--card-bg, #ffffff);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Optional hover effect */
.cards:hover {
  transform: translateY(-4px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.cards i {
  margin-top: 10px;
  font-size: 3rem;
  display: inline-block;
  background: linear-gradient(125deg,
      #0099ff 0%,
      #0099ff 20%,
      #9214ff 80%,
      #8800ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cards h2 {
  margin: 5px 0;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.3;
}

.cards p {
  font-size: 0.70rem;
  line-height: 1.5;
  padding: 0;
  margin-bottom: 7px;
}

#Blog-section h1 {
  color: var(--text-color);
}

.cards {
  background-color: var(--card-bg);
  box-shadow:
    var(--card-shadow1),
    var(--card-shadow2);
}

.cards h2 {
  color: var(--text-color);
}

.cards p {
  color: var(--text-color);
}

.cards:hover {
  box-shadow:
    var(--hover-shadow1),
    var(--hover-shadow2);
}

/* Responsive adjustments */
@media screen and (max-width: 1050px) {
  .blog-card-container {
    padding: 3vh 5%;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .blog-card-container {
    padding: 3vh 4%;
    gap: 1.2rem;
  }

  .cards {
    padding: 12px;
    max-width: 260px;
  }

  .cards img {
    height: 140px;
  }
}

@media screen and (max-width: 600px) {
  .blog-card-container {
    padding: 4vh 4%;
    gap: 1rem;
    grid-template-columns: 2fr;
  }
}

@media screen and (max-width: 450px) {
  #Blog-section {
    padding: 3rem 4%;
  }

  .blog-card-container {
    padding: 4vh 4%;
    gap: 1rem;
    grid-template-columns: 1fr;
  }

  .cards {
    max-width: 300px;
  }

  .cards img {
    height: 140px;
  }
}
/* ======================== Blog Section End ========================  */


/* ======================== About Section ========================  */

#About-section {
  width: 100%;
  height: auto;
  margin: 10vh auto;
  padding-top: 10vh;
}

#About-section h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 3vh auto;
}

.about-contant {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 1vh;
}

.about-text {
  width: 60%;
  height: auto;
}

.about-text h3 {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 10px 0;
}

.bg-blue {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--blue-color);
}

.about-para-words {
  font-size: 20px;
  font-weight: 500;
  color: var(--blue-color);
}

.about-text p {
  margin: 10px 0;
  font-size: 17px;
  line-height: 23px;

}

.about-img {
  width: 280px;
  height: auto;
  padding: 5px;
}

.about-img img {
  width: 100%;
  height: auto;

}

#about-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2vh;
  margin-bottom: 5vh;
  font-size: 14px;
  padding: 10px 1px;
}

@media screen and (max-width: 850px) {
  .about-contant {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 2vh 1vw;
  }

  .about-contant {
    width: 100%;
  }

  @media screen and (max-width: 400px) {
    #About-section {
      width: 100%;
      height: auto;
      margin: 2vh auto;
      padding-top: 1vh;
    }

    .about-img {
      width: 200px;
      height: auto;
      padding: 5px;
      margin-top: 0px;
    }

    .about-contant {
      width: 100%;
      padding: 0;
    }

    .about-text {
      width: 90%;
      height: auto;
    }

    .about-text p {
      width: 100%;
      padding: 0;
      margin: 0;
    }
  }

}
/* ======================== About Section End ========================  */


/* ======================== Contact Section ========================  */

#Contact-section {
  width: 85%;
  height: auto;
  text-align: center;
  padding: 7vh 2vw;
  margin: 10vh auto;
  background: linear-gradient(145deg, #0099ff, #e100ff);
  overflow: hidden;
  border-radius: 30px;
  color: white;
}


#Contact-section h1 {
  font-size: 2.3rem;
}

.contact-para {
  padding: 0 30px;
  text-align: center;
}

#Contact-section p {
  text-align: center;
  padding: 15px 10px;
  font-size: 17px;
}

.follow-section {
  margin: 3vh auto;
}

.follow-section h2 {
  font-size: 1rem;
  margin-top: 4vh;
  margin-bottom: 3vh;
}

.icons i {
  padding: 8px;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.icons a,
i {
  color: rgb(228, 228, 228);
  text-decoration: none;

}

.icons i:hover {
  transform: scale(1.3);
}

@media screen and (max-width: 500px) {
  .contact-para {
    padding: 0 5px;
    text-align: center;
  }

  #Contact-section p {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 15px 1px;
    font-size: 17px;
    line-height: 23px;
  }
}
/* ======================== Contact Section End ========================  */


/* ======================== Footer Section End ========================  */
footer {
  width: 100%;
  padding: 10px;
  text-align: center;
}
/* ======================== Footer Section End ========================  */