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

a {
  text-decoration: underline;
  cursor: pointer;
  color: #fff;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #0a0a0a, #f39c12, #0a0a0a);
  background-size: 400% 400%;
  animation: gradientAnimation 10s infinite ease-in-out;
  color: #fff;
  margin: 0;
  padding: 0;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Container layout */
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
}

section {
  background: rgba(10, 10, 10, 0.8);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  width: 100%;
  max-width: 1200px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.8rem;
  color: #f39c12;
}

/* Hero */
.hero {
  background: url('https://source.unsplash.com/1600x900/?cybersecurity,technology') no-repeat center center/cover;
  color: #0a0a0a;
  padding: 2rem 2rem;
  text-align: center;
  margin-top: 60px;
  border-radius: 0;
  box-shadow: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
}

.hero p {
  font-size: 1.4rem;
  margin-top: 1rem;
}

.btn {
  display: inline-block;
  background: #0a0a0a;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background: #d98309;
  color: #0a0a0a;
}

.about-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: left;
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  background: #1a1616;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(54, 42, 42, 0.2);
}

.about-text, .about-connect {
  flex: 1 1 45%;
}

.about-connect {
  text-align: center;
}

.about-link {
  text-decoration: none;
  color: #e78b8b;
}

.about-link:hover {
  text-decoration: underline;
  color: #ccc;
}

.about-timeline {
  margin-top: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  background: #111;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.about-timeline h3 {
  color: #f39c12;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.about-timeline ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.95rem;
}

.about-timeline li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.2rem;
}

.about-timeline li::before {
  content: \"📍\";
  position: absolute;
  left: 0;
  top: 0;
}
.about-timeline span {
  font-weight: bold;
  color: #ccc;
}

.quick-tip {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  border-left: 4px solid #f39c12;
  background: #111;
  border-radius: 6px;
  font-size: 0.95rem;
}

.tip-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.tip-box button {
  background: #0a0a0a;
  color: #f39c12;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.tip-box button:hover {
  background: #f39c12;
  color: #0a0a0a;
}

#quickTip {
  transition: opacity 0.5s ease;
  max-width: 300px;
}

.fade {
  opacity: 1;
}

.fade-out {
  opacity: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-section {
  margin-top: 2rem;
}

.skill-section h3 {
  color: #f39c12;
  margin-bottom: 1rem;
  text-align: center;
}

.skill {
  transition: transform 0.3s ease;
}

.skill:hover {
  transform: scale(1.05);
  background-color: #333;
  transform: scale(1.03);
  border-color: #f39c12;
}

.skill {
  background: #070707;
  padding: 1rem;
  border-radius: 5px;
  text-align: center;
}

.skill a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.skill a:hover {
  color: #f39c12;
}

.note {
  font-style: italic;
  color: #ccc;
  margin-bottom: 1rem;
  text-align: center;
}

.divider-line {
  border-top: 2px solid #f39c12;
  margin: 2rem auto;
  width: 80%;
  opacity: 0.4;
}

.divider-labeled {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3rem 0 2rem;
  width: 100%;
}

.divider-labeled::before,
.divider-labeled::after {
  content: '';
  flex: 1;
  border-top: 2px solid #f39c12;
  opacity: 0.4;
  margin: 0 1rem;
}

.divider-labeled span {
  color: #f39c12;
  font-weight: bold;
  letter-spacing: 1px;
}

.cert-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.5rem;
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  flex: 1 1 220px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.cert-card:hover {
  transform: scale(1.03);
  border-color: #f39c12;
}

#completed-certs, #pending-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 1rem 0;
}

.certs {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.cert-h1 {
  text-align: center;
  color: #f39c12;
}

.cert-h2 {
  text-align: center;
}

.cert-link {
  color: #f39c12;
  text-decoration: none;
}

.cert-link:hover {
  text-decoration: underline;
  color: #fff;
}

.cert-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.cyber-fact h2 {
  text-align: center;
}

.cyber-fact p {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #eee;
}

footer {
  background: #0a0a0a;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
}

footer a {
  color: #fff;
}

footer a:hover {
  color: #f39c12;
}

/* Responsive */
@media (max-width: 768px) {
  .btn {
    margin-top: 5px;
  }
  .about-flex {
    flex-direction: column;
    text-align: left;
    align-items: center;
  }

  .about-text, .about-connect {
    flex: 1 1 100%;
  }
  
  .about-connect { 
    text-align: center;
  }
  
  .note {
    text-align: center;
  } 
}