* {
  box-sizing: border-box;
}

.nav i, .social-links i, .contact-card h4 i {
  margin-right: 6px;
  color: #ff4c4c;
  font-size: 20px;
}

.nav a:hover i, .social-links a:hover i {
  color: #fff;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: "Comfortaa", sans-serif;
  color: #e6eef6;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("images/BG.jpg");
  background-size: cover;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: clamp(320px, 90vw, 1200px);
  padding: 0 clamp(12px, 4vw, 40px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
}

.brand a {
  color: #ff4c4c;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-decoration: none;
  font-size: 25px;
}

.nav a {
  color: #bbb;
  margin-left: 20px;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.2s ease;
}

.nav a:hover { color: #ff4c4c; }
.nav.open { display: block; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #bbb;
  font-size: 20px;
}

.hero {
  padding: 170px 0 70px;
  text-align: center;
}

.name{
  color: #d00000;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffffff, 0 0 15px #ffffff;
}

.hero-title {
  font-size: clamp(32px, 5vw, 64px);
  margin: 0;
  letter-spacing: 1px;
  color: #fff;
}

.hero-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
  text-align: center;
}

.hero-sub {
  margin: 12px 0 18px;
  color: #bbb;
  font-size: 18px;
}

.hero-cta { margin-top: 18px; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(123, 224, 255, 0.12), rgba(123, 224, 255, 0.06));
  color: #ff4c4c;
  margin-right: 10px;
  border: 1px solid rgba(123, 224, 255, 0.12);
}

.btn:hover {
  background: rgba(255, 76, 76, 0.2);
  border-color: rgba(255, 76, 76, 0.4);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: #bbb;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ff4c4c;
  color: #ff4c4c;
}

.hero-meta {
  margin-top: 14px;
  color: #bbb;
  font-size: 13px;
}

.section {
  padding: 120px 0;
}

.section-body {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(12px, 4vw, 40px);
}

.section > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-title {
  font-size: 60px;
  margin: 0 0 18px;
  padding-bottom: 25px;
  color: #fff;
}

.lead {
  color: #bbb;
  max-width: 600px;
  margin: 0 auto;
  font-size: clamp(25.5px, 2vw, 18px);
  text-align: center;
}

.skills {
    padding: 80px 0;
    min-height: 89vh;
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
    border-color: rgba(220, 38, 38, 0.5);
}

.skill-icon {
    font-size: 3rem;
    color: #DC2626;
    margin-bottom: 1rem;
}

.skill-item h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.skill-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(45deg, #DC2626, #EF4444);
    border-radius: 4px;
    width: 0%;
    transition: width 1.2s ease-in-out;
}

.skill-percentage {
    color: #DC2626;
    font-weight: 600;
}

.projects {
    padding: 80px 0;
    min-height: 89vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.project-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.3);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(220, 38, 38, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.2);
}

.project-content {
    padding: 1.5rem;
    text-align: center;
}

.project-content h3 {
    color: #DC2626;
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.project-content p {
    color: #e5e5e5;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.btn.btn-small {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #DC2626;
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn.btn-small:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.head1{
  text-align: center;
  padding-top: 120px;
  color: red;
}

#loading{
  text-align: center;
  font-size: 50px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
}
.contact-card {
  width: 100%;
  max-width: 350px;
  background: rgba(255, 255, 255, 0.07);
  padding: 16px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(220, 38, 38, 0.2);
  text-align: center;
  transition: all 0.3s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.contact-card a {
  color: #ff4c4c;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-card h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 19px;
}
.contact-card p {
  margin: 0;
  color: #bbb;
  font-size: 14px;
}
.contact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(220, 38, 38, 0.5);
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 1.5rem;
}
.social-links a {
  font-size: 1.25rem;
  padding: 7px 10px;
  border: 1px solid #d33;
  border-radius: 1150px;
  color: #f55;
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-links a:hover {
  background-color: #d33;
  color: #fff;
  border-color: #fff;
}

.site-footer {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  text-align: center;
  color: #bbb;
}

@media (max-width: 900px) {
  .hero-title {
    font-size: 36px;
    color: #fff;
  }
  .nav {
    display: none;
    position: absolute;
    right: 16px;
    top: 62px;
    background: rgba(3, 7, 18, 0.9);
    padding: 12px;
    border-radius: 8px;
  }
  .skills-grid {
        grid-template-columns: 1fr;
    }
  .skill-item {
        padding: 1.5rem;
    }
  .nav a {
    display: block;
    margin: 8px 0;
    color: #bbb;
  }
  .nav-toggle { display: inline-block; }
  .contact-grid { grid-template-columns: 1fr; }
}
