html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Light Mode */
body.light {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  color: #374151;
}

/* Dark Mode */
body.dark {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
}



/* Section Headings */
section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeIn 1.2s ease-in-out;
}

/* Paragraphs */
section p {
  line-height: 1.75;
  animation: fadeIn 1.5s ease-in-out;
}

body.light section p {
  color: #374151;
}

body.dark section p {
  color: #d1d5db;
}

/* Section Container */
.section-tab {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  backdrop-filter: blur(10px);
  transition: background 0.4s ease;
  margin-bottom: 3rem;
}

body.light .section-tab {
  background: rgba(255, 255, 255, 0.65);
}

body.dark .section-tab {
  background: rgba(30, 41, 59, 0.65);
}

/* Grids */
.skills-grid,
.project-grid,
.cert-grid,
.blog-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .skills-grid,
  .project-grid,
  .cert-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid,
  .project-grid,
  .cert-grid,
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.skills-grid div,
.project-grid div,
.cert-grid div,
.blog-grid div {
  border-radius: 0.75rem;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}

body.light .skills-grid div,
body.light .project-grid div,
body.light .cert-grid div,
body.light .blog-grid div {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

body.dark .skills-grid div,
body.dark .project-grid div,
body.dark .cert-grid div,
body.dark .blog-grid div {
  background: rgba(51, 65, 85, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.skills-grid div:hover,
.project-grid div:hover,
.cert-grid div:hover,
.blog-grid div:hover {
  transform: translateY(-5px);
}

/* Links */
a {
  position: relative;
  transition: color 0.3s ease;
}
a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -2px;
  background: linear-gradient(90deg, #4f46e5, #9333ea);
  transition: width 0.3s ease;
}
a:hover::after {
  width: 100%;
}

/* Buttons */
button, .btn {
  transition: all 0.3s ease;
}
button:hover, .btn:hover {
  box-shadow: 0 0 15px rgba(79,70,229,0.5);
}

/* Video Background */
/* .bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}
  
.fallback-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
} */

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 1.2s ease-in-out;
}





/*Start Animations*/
@-webkit-keyframes animatetop {
	from {
		top: -300px;
		opacity: 0;
	}
	to {
		top: 0;
		opacity: 1;
	}
}
@keyframes animatetop {
	from {
		top: -300px;
		opacity: 0;
	}
	to {
		top: 0;
		opacity: 1;
	}
}
@-webkit-keyframes zoomIn {
	0% {
		opacity: 0;
		-webkit-transform: scale3d(0.3, 0.3, 0.3);
		transform: scale3d(0.3, 0.3, 0.3);
	}
	50% {
		opacity: 1;
	}
}
@keyframes zoomIn {
	0% {
		opacity: 0;
		-webkit-transform: scale3d(0.3, 0.3, 0.3);
		transform: scale3d(0.3, 0.3, 0.3);
	}
	50% {
		opacity: 1;
	}
}/*End Animations*/
/*
-- Start BackGround Animation 
*/
.area {
	background: #bcbfea;
	background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);
	width: 100%;
	height: 100vh;
	position: absolute;
	z-index: -1;
}

.circles {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 96%;
	overflow: hidden;
}
.circles li {
	position: absolute;
	display: block;
	list-style: none;
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.2);
	animation: animate 25s linear infinite;
	bottom: -150px;
}

.circles li:nth-child(1) {
	left: 25%;
	width: 80px;
	height: 80px;
	animation-delay: 0s;
}

.circles li:nth-child(2) {
	left: 10%;
	width: 20px;
	height: 20px;
	animation-delay: 2s;
	animation-duration: 12s;
}
.circles li:nth-child(3) {
	left: 70%;
	width: 20px;
	height: 20px;
	animation-delay: 4s;
}

.circles li:nth-child(4) {
	left: 40%;
	width: 60px;
	height: 60px;
	animation-delay: 0s;
	animation-duration: 18s;
}

.circles li:nth-child(5) {
	left: 65%;
	width: 20px;
	height: 20px;
	animation-delay: 0s;
}

.circles li:nth-child(6) {
	left: 75%;
	width: 110px;
	height: 110px;
	animation-delay: 3s;
}
.circles li:nth-child(7) {
	left: 35%;
	width: 150px;
	height: 150px;
	animation-delay: 7s;
}

.circles li:nth-child(8) {
	left: 50%;
	width: 25px;
	height: 25px;
	animation-delay: 15s;
	animation-duration: 45s;
}

.circles li:nth-child(9) {
	left: 20%;
	width: 15px;
	height: 15px;
	animation-delay: 2s;
	animation-duration: 35s;
}

.circles li:nth-child(10) {
	left: 85%;
	width: 150px;
	height: 150px;
	animation-delay: 0s;
	animation-duration: 11s;
}
@keyframes animate {
	0% {
		transform: translateY(0) rotate(0deg);
		opacity: 1;
		border-radius: 0;
	}

	100% {
		transform: translateY(-1000px) rotate(720deg);
		opacity: 0;
		border-radius: 50%;
	}
}
/*
-- End BackGround Animation 
*/