* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #ec4899;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-list {
  margin: 15px 20px;
}

.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.ul-list {
  list-style: none;
  display: flex;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
  padding: 12px 30px;
  border-radius: 50px;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.ul-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  transition: all 0.3s ease;
  padding: 8px 16px;
  cursor: pointer;
}

.ul-list li:hover {
  background: rgba(99, 102, 241, 0.1);
}

.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
}

.ul-list li.active {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 10px 16px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.ul-list li.active a,
.ul-list li.active i {
  color: white;
}

/* fine header  */

.home {
  margin: 160px 200px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* Animated particle background */
.particles-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  opacity: 0.4;
  animation: float 15s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { top: 80%; left: 20%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { top: 40%; left: 70%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { top: 10%; left: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { top: 70%; left: 40%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { top: 30%; left: 90%; animation-delay: 2.5s; animation-duration: 17s; }
.particle:nth-child(8) { top: 90%; left: 60%; animation-delay: 1.5s; animation-duration: 19s; }
.particle:nth-child(9) { top: 50%; left: 15%; animation-delay: 4.5s; animation-duration: 14.5s; }
.particle:nth-child(10) { top: 15%; left: 75%; animation-delay: 3.5s; animation-duration: 15.5s; }

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(30px, -30px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.8);
    opacity: 0.3;
  }
  75% {
    transform: translate(40px, 10px) scale(1.1);
    opacity: 0.5;
  }
}

/* Status badge */
.status-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  padding: 10px 20px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  z-index: 10;
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  }
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.status-text {
  color: #059669;
  font-weight: 600;
  font-size: 14px;
}

.home-container {
  display: flex;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Welcome badge */
.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  padding: 10px 20px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wave-emoji {
  font-size: 24px;
  animation: wave 2s infinite;
  transform-origin: 70% 70%;
  display: inline-block;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40%, 60% { transform: rotate(0deg); }
}

.welcome-badge span:last-child {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 14px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.home-p {
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  display: inline-block;
  border-radius: 25px;
  padding: 8px 16px;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.home-s {
  font-weight: bold;
  color: #10b981;
}

.info-home h1 {
  font-size: 70px;
  font-family: "Raleway", sans-serif;
  margin-bottom: 20px;
  color: var(--text-dark);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-home h3 {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.typing-text {
  color: var(--secondary-color);
  position: relative;
}

.typing-text::after {
  content: '';
  position: absolute;
  right: -10px;
  width: 2px;
  height: 100%;
  background: var(--primary-color);
  animation: blink 0.7s infinite;
}

.info-p {
  color: var(--text-light);
  font-family: "Roboto", sans-serif;
  padding-bottom: 20px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.info-p p {
  padding-bottom: 8px;
}

.info-p2 {
  display: flex;
  gap: 1.5rem;
  color: var(--text-dark);
  font-size: 14px;
  padding-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.info-p2 i {
  color: var(--primary-color);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator i {
  color: #10b981 !important;
  font-size: 8px;
  animation: pulse-dot 1.5s infinite;
}

.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
  animation: fadeInUp 0.8s ease 0.8s backwards;
}

/* Shimmer button effect */
.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.shimmer-btn span {
  position: relative;
  z-index: 1;
}

.shimmer-btn i {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.shimmer-btn:hover i {
  transform: translateX(5px);
}

.btn-home1 {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-home1:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-home2 {
  display: inline-block;
  background-color: transparent;
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-home2:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

hr {
  width: 90%;
  font-weight: bold;
  color: gray;
}

.hhr {
  padding-bottom: 30px;
}

.follow {
  display: flex;
  gap: 1rem;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}

.follow ul li {
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: #000000;
}

.home img {
  width: 400px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 4px solid white;
  animation: fadeInRight 0.8s ease 0.4s backwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.home img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.3);
}

/* Profile image container with floating icons */
.profile-image-container {
  position: relative;
  animation: fadeInRight 0.8s ease 0.4s backwards;
}

.profile-img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  border: 4px solid white;
  position: relative;
  z-index: 2;
}

.profile-img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 70px rgba(99, 102, 241, 0.3);
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  opacity: 0.2;
  filter: blur(60px);
  z-index: 1;
  animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Floating skill icons */
.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.floating-icon {
  position: absolute;
  font-size: 32px;
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: float-icon 3s ease-in-out infinite;
}

.icon-1 {
  top: -20px;
  right: -20px;
  color: #3776ab;
  animation-delay: 0s;
}

.icon-2 {
  bottom: 30px;
  right: -30px;
  color: #10b981;
  animation-delay: 0.5s;
}

.icon-3 {
  top: 30px;
  left: -30px;
  color: #f59e0b;
  animation-delay: 1s;
}

.icon-4 {
  bottom: -20px;
  left: -20px;
  color: var(--primary-color);
  animation-delay: 1.5s;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* fine home  */

/* Section headers styling */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
  font-size: 48px;
  font-family: "Open Sans", sans-serif;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.about{
    margin: 160px 200px;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.about > p{
    padding-bottom: 30px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about h1{
    font-family: "Open Sans", sans-serif;
    color: var(--text-dark);
    font-size: 36px;
}

.title{
    padding-bottom: 20px;
}

.about .hrrr{
    width: 100px;
    padding-bottom: 40px;
    margin: 0 auto;
}

.about .hrrr hr {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 2px;
}

.info-about{
    display: flex;
    flex-direction: column;
}

.about-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-container{
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-left-col {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about img{
    position: relative;
    bottom: 0;
    width: 100%;
    flex: 1;
    border-radius: 20px;
    border: 4px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    object-fit: cover;
}

.about img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 25px 70px rgba(139, 92, 246, 0.3);
}

.about h2{
    padding-bottom: 30px;
    color: var(--text-dark);
    font-size: 28px;
}

.card{
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.c1{
    flex: 1;
    min-width: 200px;
    display: flex;
    align-content: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.2);
    padding: 25px 20px;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.c1 h3{
    padding-top: 10px;
    padding-bottom: 10px;
    color: var(--text-dark);
    font-size: 18px;
}

.c1 h3 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.c1 p {
    color: var(--text-light);
    font-size: 14px;
}

.c1:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);  
  cursor: pointer;                         
}


.project{
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
}

.project > p{
    padding-bottom: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project h1{
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
    color: var(--text-dark);
    font-size: 42px;
}

.project hr{
    display: none;
}

.info-pro{
    padding-top: 20px;
    text-align: center;
}

.info-pro p{
    padding-bottom: 10px;
    color: var(--text-light);
    font-size: 16px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  padding-top: 20px;
}

.project-card {
  background: white;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 0;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-card h3 {
  color: var(--text-dark);
  margin-bottom: 10px;
  font-size: 20px;
  padding: 20px 20px 0 20px;
}

.project-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.6;
  padding: 0 20px;
}

.skills {
  margin-bottom: 15px;
  padding: 0 20px;
}

.skills a {
  display: inline-block;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 3px;
  transition: all 0.3s;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.skills a:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: translateY(-2px);
}

.btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 20px 20px 20px;
}

.btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 13px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.contact {
    margin: 160px 200px;
    padding: 60px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.contact > p{
    padding-bottom: 20px;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.contact h1{
    font-family: "Open Sans", sans-serif;
    padding-bottom: 10px;
    color: var(--text-dark);
    font-size: 42px;
    text-align: center;
}

.contact hr{
    width: 10%;
    margin: 0 auto;
}

.contact-content {
  padding-top: 50px;
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  font-size: 16px;
  margin-bottom: 25px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #222;
}

.contact-item i {
  font-size: 20px;
  color: #323ab7;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222;
  font-size: 20px;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: #fff;
}

.social-link[href*="github"]:hover {
  background: #000;
}

.social-link[href*="linkedin"]:hover {
  background: #0A66C2;
}

.social-link[href*="wa.me"]:hover {
  background: #25D366;
}

/* Form */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; 
  border-color: #474af0;
}

.btn-send {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  width: 100%;
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }
}


.footer {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  overflow-x: hidden;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.footer-container {
  max-width: 1200px;
  margin: auto;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  margin-bottom: 25px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.footer-links li a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 15px;
}

.footer-links li a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.footer-copy {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 20px;
}

.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 0.6s ease-out;
}

.active-reveal {
  opacity: 1;
  transform: translateY(0);
}

body {
  margin:0;
  padding:0;
  font-family: 'Montserrat', sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
}

#loading-screen {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: linear-gradient(135deg, var(--dark-bg) 0%, #1e293b 100%);
  display:flex;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  z-index:9999;
  overflow:hidden;
  color: var(--primary-color);
  text-align:center;
}

.hidden {
  opacity: 0;
  transform: translateY(-200px);
}

.fall {
  animation: fall 0.9s forwards;
}

@keyframes fall {
  0% {
    opacity:0;
    transform: translateY(-200px);
  }
  60% {
    opacity:1;
    transform: translateY(20px);
  }
  100% {
    transform: translateY(0);
  }
}

.loading-content h1 {
  margin: 20px 0;
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-content h2 {
  margin: 20px 0;
  color: #cbd5e1;
  font-size: 18px;
  font-weight: 400;
}

.loading-content i {
  margin: 20px 0;
  color: var(--primary-color);
}

.sub-icons {
  display:flex;
  justify-content:center;
  gap: 25px;
  margin-bottom: 20px;
}

.cursor {
  animation: blink 0.7s infinite;
  color: var(--primary-color);
}

/* ==== Certifications ==== */
.cert-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .cert-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cert-container {
    grid-template-columns: 1fr;
  }
}

.cert-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.cert-badge {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  padding: 12px;
}

.cert-badge img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.cert-body {
  padding: 18px 20px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cert-issuer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cert-issuer img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
}

.cert-issuer span {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.cert-card h3 {
  color: var(--text-dark);
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.cert-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  color: var(--primary-color);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.cert-link:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transform: translateY(-2px);
}

.form-status {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.form-status.show {
  opacity: 1;
  max-height: 60px;
  margin-top: 14px;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Responsive for tablets and phones */
@media (max-width: 1024px) {
  .home, .about, .project, .services, .contact {
    margin: 120px 50px;
  }

  .home-container, .about-container {
    flex-direction: column;
    gap: 3rem;
  }

  .home img, .about img {
    width: 100%;
    height: auto;
  }

  .ul-list {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 8px 15px;
  }
}

/* Phone layout */
@media (max-width: 768px) {
  header {
    display: none;
  }

  .home, .about, .project, .services, .contact {
    margin: 100px 20px;
  }

  .home-container, .about-container, .contact-content {
    flex-direction: column;
    gap: 2rem;
  }

  .projects-container, .services-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home img, .about img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .btn-home1, .btn-home2, .btn, .btn-send {
    width: 100%;
    text-align: center;
  }
  
  .follow ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 1024px) {

  header {
    display: none;
  }

  .home, .about, .project, .services, .contact {
    margin: 20px auto;
    padding: 0 15px;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .home-container,
  .about-container,
  .services-container,
  .projects-container,
  .contact-content,
  .card,
  .about-left-col,
  .about-right-col {
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
  }

  .about-left-col,
  .about-right-col {
    flex: 1 1 100% !important;
    width: 100%;
  }

  .about img {
    width: 100%;
    max-width: 220px; 
    height: auto;
    margin-bottom: 20px;
    position: relative;
    z-index: 1; 
  }

  .card .c1 {
    width: 100%;
    max-width: 300px;
    text-align: center;
    margin: 0 auto;
  }

  .home img,
  .project-card img,
  .service-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
    object-fit: cover;
  }

  .info-home h1 { font-size: 26px; }
  .info-home h3 { font-size: 18px; }
  .info-p, .info-p2, .home-p, .about p, .project p, .service-card p, .contact p {
    font-size: 14px;
  }
  .project-card h3, .service-card h3 { font-size: 16px; }

  .contact-content {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .contact-info, .contact-form {
    width: 100%;
    max-width: 400px;
  }

  html, body {
    overflow-x: hidden;
  }
}