/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* Body Layout */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* Container Layout */
.container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background-color: #1c1f26;
  color: #fff;
  width: 280px;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  height: 100vh;
}

.sidebar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.sidebar h2 {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.sidebar p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 1rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.social-links li {
  list-style: none;
}

.social-links a {
  color: #ccc;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #1da1f2; /* hover blue */
  transform: translateY(-2px); /* slight lift effect */
}


/* Main Content */
.content {
  margin-left: 280px;
  padding: 2rem 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensures footer aligns at bottom */
}

/* Navbar */
.navbar {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

.navbar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #1da1f2;
}

/* Sections */
.section {
  margin-bottom: 3rem;
  flex: 1 0 auto; /* allows sections to grow */
}

.section h2 {
  color: #1c1f26;
  margin-bottom: 1rem;
  border-left: 4px solid #1da1f2;
  padding-left: 0.6rem;
}

.section p, .section li {
  line-height: 1.6;
  margin-bottom: 0.6rem;
}


/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
}

.skill-card h3 {
  color: #1da1f2;
  margin-bottom: 0.8rem;
}

.skill-card ul {
  list-style: none;
}

.skill-card li {
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.2rem;
}

.skill-card li::before {
  content: "•";
  color: #1da1f2;
  position: absolute;
  left: 0;
}



/* Info Card (shared style for Education and Work) */
.info-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.info-card h3 {
  color: #1da1f2;
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-info {
  list-style: none;
}

.contact-info li {
  margin: 0.5rem 0;
}

.contact-info i {
  margin-right: 0.6rem;
  color: #1da1f2;
}

/* Links in sections */
.section a {
  color: #1da1f2;
  text-decoration: none;
  font-weight: 600;
}

.section a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: #1c1f26; /* same as sidebar */
  color: #ccc;
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid #2a2d34;
  width: 100%;
  margin-top: auto; /* ensures footer pushes to bottom */
}

.footer p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
}

.footer strong {
  color: #fff;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-socials a {
  color: #ccc;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #1da1f2;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    background-color: #1c1f26;
    color: #fff;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: auto;
  }

  .content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .navbar {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer {
    width: 100%;
    margin-left: 0;
  }
}


/* ==== Terminal Widget ==== */
.terminal {
  background: #1e1e1e;
  color: #00ff88;
  font-family: 'Courier New', monospace;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  overflow: hidden;
  margin: 20px 0;
  width: 100%;
}

.terminal-header {
  background: #2c2c2c;
  padding: 8px 10px;
  display: flex;
  gap: 8px;
}

.terminal-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-header .red { background: #ff5f56; }
.terminal-header .yellow { background: #ffbd2e; }
.terminal-header .green { background: #27c93f; }

.terminal-body {
  padding: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal-body p {
  margin: 5px 0;
  white-space: nowrap;
}

/* Optional blinking cursor */
.terminal-body p:nth-child(2)::after {
  content: '|';
  animation: blink 1s infinite;
  color: #00ff88;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}
