/* =========================
   General Reset & Fonts
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #121212;
  color: #f0f0f0;
}

/* =========================
   Hamburger & Sidebar Nav
========================= */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background: #ff6a00;
  border-radius: 2px;
  transition: 0.3s;
}

/* Sidebar */
#sidebar {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: #1c1c1c;
  box-shadow: -4px 0 15px rgba(0,0,0,0.5);
  transition: 0.4s;
  z-index: 1000;
  padding-top: 60px;
}
#sidebar.active {
  right: 0;
}
#sidebar ul {
  list-style: none;
  padding: 0 20px;
}
#sidebar ul li {
  margin: 20px 0;
}
#sidebar ul li a {
  color: #ff6a00;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
#sidebar ul li a:hover {
  color: #fff;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  text-align: center;
  padding: 80px 20px 60px 20px;
  background: #1c1c1c;
  position: relative;
}
.hero img {
  width: 140px;
  border-radius: 50%;
  border: 3px solid #ff6a00;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #ff6a00;
}
.tagline {
  font-size: 18px;
  margin-bottom: 20px;
  color: #f0f0f0;
}
.resume-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 25px;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.resume-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255,106,0,0.5);
}

/* =========================
   Sections
========================= */
section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: auto;
}
h2 {
  font-size: 28px;
  border-left: 4px solid #ff6a00;
  padding-left: 10px;
  margin-bottom: 25px;
  color: #ff6a00;
}

/* =========================
   Cards & Grid
========================= */
.card,
.project-card,
.cert-card,
.skill-card {
  background: #1c1c1c;
  padding: 20px;
  margin: 12px 0;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.card:hover,
.project-card:hover,
.cert-card:hover,
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255,106,0,0.5);
}

.skills-grid,
.cert-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 15px;
}

/* =========================
   Certifications Section
========================= */
#certifications {
  background: #1a1a1a;
  padding: 80px 20px;
  border-radius: 12px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cert-card {
  background: #121212;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #333;
  position: relative;
  overflow: hidden;
}

.cert-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.cert-card h3 {
  margin-top: 10px;
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.3s;
}

.cert-card a {
  text-decoration: none;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255,106,0,0.6);
  border-image: linear-gradient(135deg, #ff6a00, #ee0979) 1;
}

.cert-card:hover img {
  transform: scale(1.05);
}

.cert-card:hover h3 {
  color: #ee0979;
}

/* =========================
   Project Buttons
========================= */
.project-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #ff6a00;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.project-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255,106,0,0.5);
}

/* =========================
   Ripple Effect
========================= */
a, button, .project-btn {
  position: relative;
  overflow: hidden;
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,106,0,0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* =========================
   Scroll Reveal
========================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Contact
========================= */
.contact-item {
  margin: 12px 0;
}
.contact-item a {
  color: #ff6a00;
  text-decoration: none;
}
.contact-item a:hover {
  text-decoration: underline;
}

/* =========================
   Scroll to Top
========================= */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #ff6a00, #ee0979);
  color: #fff;
  border: none;
  padding: 14px 16px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 6px 15px rgba(255,106,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#scrollToTop:hover {
  transform: rotate(360deg) scale(1.2);
  box-shadow: 0 10px 25px rgba(255,106,0,0.6);
}

/* =========================
   Automatic Numbering
========================= */
.numbered-section {
  counter-reset: section-counter;
}
.numbered-section .card,
.numbered-section .project-card,
.numbered-section .skill-card {
  counter-increment: section-counter;
}
.numbered-section .card::before,
.numbered-section .project-card::before,
.numbered-section .skill-card::before {
  content: counter(section-counter) ". ";
  font-weight: bold;
  margin-right: 6px;
  color: #ff6a00;
}

/* =========================
   Footer
========================= */
footer {
  text-align: center;
  padding: 50px 20px;
  background: #1c1c1c;
  color: #f0f0f0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #ff6a00, #ee0979, #ff6a00);
  animation: gradientMove 4s linear infinite;
}
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

footer p {
  margin: 10px 0;
  font-size: 16px;
}

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

footer .social-links a {
  color: #ff6a00;
  font-size: 22px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer .social-links a:hover {
  color: #ee0979;
  transform: scale(1.3) rotate(10deg);
}

footer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,106,0,0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(60px);
  z-index: 0;
}

footer * {
  position: relative;
  z-index: 1;
}

/* =========================
   Responsive
========================= */
@media(max-width:768px) {
  .hero img { width:120px; }
  h1 { font-size:28px; }
  .tagline { font-size:16px; }
  .skills-grid, .cert-grid, .project-grid { grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
}

@media(max-width:480px) {
  .hero { padding:60px 10px 40px 10px; }
  section { padding:50px 10px; }
  .project-btn { width:100%; text-align:center; }
  .cert-grid { grid-template-columns: 1fr; }
  footer p { font-size: 14px; }
  footer .social-links { gap: 15px; }
}