:root {
  --dark-bg: #000000;
  --dark-card: #111111;
  --dark-text: #f5f5f5;
  --dark-accent: #ff1c1c;
  --dark-hover: rgba(255, 28, 28, 0.15);
  --dark-shadow: rgba(255, 28, 28, 0.3);
  --accent-gradient: linear-gradient(135deg, #ff1c1c, #b30000);
}

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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Header */
header {
  background-color: rgba(17, 17, 17, 0.95);
  padding: 2rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 20px var(--dark-shadow);
  transform: translateY(-100%);
  animation: slideDown 0.8s ease forwards;
}

@keyframes slideDown {
  to {
    transform: translateY(0);
  }
}

header nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  gap: 3rem;
}

header nav a {
  font-weight: bold;
  font-size: 1.6rem;
  color: var(--dark-text);
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

header nav a:hover {
  color: var(--dark-accent);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  padding: 14rem 2rem 6rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  max-width: 1400px;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.typed-text {
  color: var(--dark-accent);
  position: relative;
}

.typed-text::after {
  content: '|';
  position: absolute;
  right: -10px;
  color: var(--dark-accent);
  animation: blink 0.8s infinite;
}

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

.tagline {
  font-size: 2rem;
  color: #999;
  margin-bottom: 2rem;
}

.about {
  font-size: 1.3rem;
  margin: 1.5rem auto;
  max-width: 700px;
  line-height: 1.8;
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.social-links a {
  font-size: 3rem;
  color: var(--dark-text);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--dark-hover);
  color: var(--dark-accent);
  box-shadow: 0 0 20px var(--dark-accent);
  transform: translateY(-5px) scale(1.2);
}

/* Hero Image */
.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.profile-frame {
  width: 400px;
  height: 400px;
  background: var(--accent-gradient);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 30px var(--dark-shadow);
  transition: transform 0.4s ease;
}

.profile-frame:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px var(--dark-accent);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Skills Section */
.skills-section {
  padding: 6rem 2rem;
  background-color: var(--dark-card);
  text-align: center;
}

.skills-section h2 {
  font-size: 3.5rem;
  color: var(--dark-accent);
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px var(--dark-shadow);
  transition: all 0.3s;
}

.skill-category:hover {
  background: var(--dark-hover);
  transform: translateY(-10px);
  box-shadow: 0 12px 35px var(--dark-accent);
}

.skill-category h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.5rem;
}

.skill-icon {
  background: #333;
  padding: 1rem;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.skill-icon:hover {
  background: var(--dark-hover);
  transform: scale(1.2);
  box-shadow: 0 0 15px var(--dark-accent);
}

.skill-icon i {
  font-size: 2rem;
  color: var(--dark-text);
}

.skill-icon span {
  display: none;
}

/* Projects Section */
.projects-section {
  padding: 6rem 2rem;
  text-align: center;
}

.projects-section h2 {
  font-size: 3.5rem;
  color: var(--dark-accent);
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: rgba(37, 37, 37, 0.6);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px var(--dark-shadow);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

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

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-content h3 {
  font-size: 1.8rem;
  color: var(--dark-accent);
  margin-bottom: 0.8rem;
}

.project-content p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tags span {
  background: rgba(255, 28, 28, 0.2);
  color: var(--dark-accent);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6));
  color: #fff;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  transition: bottom 0.5s ease;
  text-align: center;
  z-index: 3;
}

.project-card:hover .project-overlay {
  bottom: 0;
}

.project-overlay h4 {
  font-size: 1.6rem;
  color: var(--dark-accent);
}

.project-overlay p {
  font-size: 1rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.project-overlay a {
  background: var(--dark-accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.project-overlay a:hover {
  background: rgba(255, 28, 28, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px var(--dark-accent);
  transform: translateY(-3px);
}

/* Buttons & Shared Glass Hover */
button,
.project-link,
.resume-btn,
.skill-icon,
.social-links a {
  background: var(--dark-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

button:hover,
.project-link:hover,
.resume-btn:hover,
.skill-icon:hover,
.social-links a:hover {
  background: var(--dark-hover);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px var(--dark-accent);
  transform: translateY(-4px) scale(1.05);
  color: var(--dark-accent);
}

/* Resume Section */
.resume-section {
  background: #111;
  text-align: center;
  padding: 5rem 2rem;
}

.resume-section h2 {
  font-size: 3.5rem;
  color: var(--dark-accent);
  margin-bottom: 1.5rem;
}

.email-link {
  color: #ccc;
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--dark-accent);
  color: #fff;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

.resume-btn:hover {
  background: var(--dark-hover);
  box-shadow: 0 0 20px var(--dark-accent);
  transform: translateY(-4px) scale(1.05);
}

/* Footer */
footer {
  background: #000;
  padding: 3rem 2rem;
  text-align: center;
  color: #777;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 12rem;
    padding-bottom: 4rem;
  }
  .hero-text h1 {
    font-size: 3.2rem;
  }
  .hero-container {
    flex-direction: column;
  }
}
/* Make skill names visible under icons */
.skill-icon {
  background: rgba(255, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
  color: var(--dark-accent);
}

.skill-icon i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.skill-icon span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--dark-accent);
}

/* Social icons - transparent background again */
.smile-socials {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.smile-socials a {
  font-size: 3rem;
  color: var(--dark-accent);
  background: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.smile-socials a:hover {
  color: #fff;
  background: rgba(255, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  transform: translateY(-5px) scale(1.2);
}

/* Curved (smile) positioning */
.smile-socials a:nth-child(1) { transform: translateY(30px) translateX(-100px) rotate(-20deg); }
.smile-socials a:nth-child(2) { transform: translateY(60px) translateX(-30px) rotate(-10deg); }
.smile-socials a:nth-child(3) { transform: translateY(60px) translateX(30px) rotate(10deg); }
.smile-socials a:nth-child(4) { transform: translateY(30px) translateX(100px) rotate(20deg); }

/* Animate cards on scroll */
[data-aos] {
  opacity: 0;
  transform: translateY(50px);
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Remove SMILE SOCIALS entirely */
.smile-socials {
  display: none;
}

/* Restore social icons to original transparent glass look */
.social-links a {
  font-size: 3rem;
  color: var(--dark-text);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--dark-hover);
  color: var(--dark-accent);
  box-shadow: 0 0 20px var(--dark-accent);
  transform: translateY(-5px) scale(1.2);
}

/* Improved Skills Section styling */

.skill-category {
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--dark-shadow);
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.skill-category:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 35px var(--dark-accent);
}

.skill-category h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

/* Make skill icons visible and elegant */

.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.skill-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem;
  border-radius: 10px;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--dark-accent);
  backdrop-filter: blur(6px);
}

.skill-icon:hover {
  background: rgba(255, 28, 28, 0.15);
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--dark-accent);
}

.skill-icon i {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
  color: var(--dark-text);
}

.skill-icon span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-accent);
  text-align: center;
}

/* ------------------------------- */
/* Skills Grid & Card Layout       */
/* ------------------------------- */

.skills-section {
  padding: 6rem 2rem;
  background-color: var(--dark-card);
  text-align: center;
}

.skills-section h2 {
  font-size: 3.5rem;
  color: var(--dark-accent);
  margin-bottom: 3rem;
}

/* Skills grid uses flex instead of grid for even heights */
.skills-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Skill cards equal height and properly aligned */
.skill-category {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px var(--dark-shadow);
  transition: all 0.3s;
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* On hover, glow effect */
.skill-category:hover {
  background: var(--dark-hover);
  transform: translateY(-10px);
  box-shadow: 0 12px 35px var(--dark-accent);
}

/* Category heading */
.skill-category h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Skills icons layout inside each card */
.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.2rem;
  width: 100%;
  justify-items: center;
}

/* Individual skill icon */
.skill-icon {
  background: #2a2a2a;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  transition: all 0.3s;
}

/* Icon grows on hover */
.skill-icon:hover {
  background: var(--dark-hover);
  transform: scale(1.15);
  box-shadow: 0 0 15px var(--dark-accent);
}

/* Icon itself */
.skill-icon i {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  color: var(--dark-text);
}

/* Skill name label */
.skill-icon span {
  font-size: 0.9rem;
  color: var(--dark-accent);
  font-weight: 600;
  text-align: center;
}
