:root {
    width: 100%;
  --bg: #ffffff;
  --bg-card: #f7f8fa;
  --text: #111;
  --text-light: #555;
  --accent: #0d49e1;
  border: 2px solid #2f81f7;
}



/* SWITCHING LIGHT */
/* Light Mode */
:root[data-theme="light"] {
  --bg: #ffffff;
  --text: #111;
  --accent: #0d49e1;
  --card-bg: #f7f7f7;
}

/* Dark Mode */
:root[data-theme="dark"] {
  --bg: #0e0e0e;
  --text: #f1f1f1;
  --accent: #5a8bff;
  --card-bg: #1a1a1a;
}

/* Apply theme */
body {
  background: var(--bg);
  color: var(--text);
  transition: background 0.4s ease, color 0.4s ease;
}

/* Animated Fade */
html.theme-transition,
html.theme-transition * {
  transition: background 0.4s ease, color 0.4s ease !important;
}

/* Toggle Button Design */
.theme-toggle {
  position: fixed;
  top: 22px;
  right: 20px;
  z-index: 10000;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Glow */
.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px var(--accent);
}

/* Icon animation */
.theme-toggle i {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.theme-toggle:hover i {
  transform: rotate(20deg);
  opacity: 0.8;
}


/* ========== GLOBAL STYLES ========== */

body {
  width: 100%;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  font-family: "Segoe UI", sans-serif;
}

/* ========== HEADER ========== */
.header {
  height: 10vh;
  padding: 2px;
  background: var(--bg-card);
  border-bottom: 3px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header img {
  width: 50px;
  border-radius: 8px;
  transition: 0.3s;
}

.header img:hover {
  transform: scale(1.05);
  background-color: green;
}

.actions {
  display: flex;
  gap: 18px;
  font-size: 1.4rem;
}

.actions a,
.theme-toggle {
  color: var(--text);
  padding: 8px;
  border-radius: 50%;
  transition: 0.3s;
}

.actions a:hover,
.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  cursor: pointer;
}

/* Previous Job Experience */
.aboutme {
  Width: 100%;  
  padding: 8px 10px;
  text-align: center;
  border: 2px solid #0d49e1;
  border-radius: 15px;
  margin: 40px auto;
  max-width: 900px;
  background-image: url(./assets/images/jobexperience.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: multiply;
    filter: opacity(20%);
    filter: brightness(1);
    border: 3px solid green;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 2em;
  transform: translateX(-1em);
}


.aboutme h1 {
  font-size: larger;
  font-size: 35px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 8px;
  color: gold;
}

.aboutme h2 {
  font-size: 20px;
  margin-bottom: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  color: #FFD700;
}

.aboutme p {
  font-size: 18px;
  text-align: center;
  font-family:serif;
  font-weight: 600;
  color: #001F54;  
  background-color: rgba(255, 255, 255, 0.8);     
  line-height: 1.6em;
  border-radius: 10px;

}

/* <!-- different previous job experience done --> */

.servicediv2 {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.differentservicespart {
  display: grid;
  padding: 0 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 25px;
}

.webdev1 {
  background: #0d49e1;
  border: 3px solid #2aa727;
  color: #fff;
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  transition: 0.3s;
}

.webdev1 img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

}

.webdev1 p{
  font-size: 18px;
  padding: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.8);     
  line-height: 1.6em;
  color: #000;
  font-weight: 600;
  line-height: 1.5em;
}
.webdev1 span {
  font-weight: 700;
  padding: 4px 8px;
  margin-bottom: 8px;
  font-size: 18px;
  color: #0d49e1;
  background-color: #ffff00;
  border-radius: 15px;
  border:  3px solid #2aa727;
}
.webdev1 button {
  background-color: #2aa727;
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
.webdev1 button a {
  display: inline-block;
  padding: 10px 15px;
  margin: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5em;
  text-decoration: none;
}



.webdev1:hover {
  transform: scale(1.05);
}
/* ========== FOOTER ========== */
.footer {
  text-align: center;
  padding: 40px 15px;
  margin-top: 30px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  color: var(--text);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: 0.3s;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--accent);
  color: #fff;
}

.crafted {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-light);
}
.crafted i {
  color: red;
}

/* FINAL HORIZONTAL SCROLL FIX  IF THE Stuff still has a little space when  scroll the to left and right on both small screen size and large screen size */
html, body {
  overflow-x: hidden !important;
}

* {
  max-width: 100%;
}

.row, .container, .wrapper, .premium-wrapper, .navbar, .nav, section, header, footer {
  overflow-x: hidden;
}