@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and font */
body {
    font-family: 'Varela Round', sans-serif;
    background-color: #121212;
    color: white;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* Container for content */
.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
    flex: 1; /* This allows the content to take available space */
}

.container h2 {
    text-align: center;
}

/* Container for descriptions */
.description-container {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  box-sizing: border-box;
  border-radius: 10px;
  align-items: stretch; /* 🔑 makes all .description divs same height */
}

.description-container .description {
  flex: 1 1 calc(50% - 1rem);
  box-sizing: border-box;
  padding: 1rem;
  border-radius: 8px;
  min-width: 250px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;

  text-align: center;
  transition: 0.3s;

  background-color: #1c1c1c;
  color: white;
}

.description-container .description:hover {
    box-shadow: 0px 8px 16px rgba(0, 255, 255, 0.6);
    transform: translateY(-10px);
}

.description-container .description h2 {
  margin-top: 0px;
  margin-bottom: 0.5rem;
}

/* Header styling */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    color: cyan;
    font-size: 50px;
}

header nav ul {
    list-style: none;
    margin-top: 10px;
}

header nav ul li {
    display: inline;
    margin: 0 15px;
}

header nav ul li a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.1em;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: cyan;
}

/* Section styling */
section {
    padding: 40px 0;
}

section h2 {
    font-size: 2em;
    color: cyan;
    margin-bottom: 20px;
}

section p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

section ul {
    list-style: none;
}

section ul li {
    margin: 10px 0;
}

section ul li a {
    text-decoration: none;
    color: cyan;
    font-size: 1.1em;
}

section ul li a:hover {
    text-decoration: underline;
}


/* Footer styling */
footer {
    background-color: #1a1a1a;
    padding: 20px 0;
    margin-top: 0;
    color: #bbbbbb;
    text-align: center;
    margin-top: auto;
}

footer p {
    font-size: 1em;
}

footer a {
    color: #009090;
    text-decoration: none;
}

.credits {
    font-size: 13px;
    color: #bbb;
}

.credits a {
    color: #00bbbb;
    text-decoration: none;
}

.credits span {
    font-weight: bold;
}

.project {
    background-color: #1c1c1c;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(2, 2, 2, 1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    position: relative; /* This allows absolute positioning of the link */
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.3);
}

.project h3 {
    margin: 0;
    padding-right: 160px; /* Prevents overlap with the top-right link */
    color: #00ffff;
    font-size: 1.5rem;
}

.project p {
    margin: 20px 0px;
    color: #ccc;
}

.project a {
    display: inline-block;
    color: #00aaaa;
    text-decoration: none;
    background-color: transparent;
    font-weight: bold;
    padding: 8px 14px;
    box-shadow: 0px 2px 10px #006464;
    border-radius: 8px;
    border: 1px solid #00bbbb;
    transition: box-shadow 0.1s;
    box-shadow: 0 0 10px rgba(0, 200, 200, 0.3);

    /* Avoid colliding with h3 */
    /* max-width: 140px; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* Move the link to the top-right corner */
    position: absolute;
    top: 20px;
    right: 20px;
}

.project a:hover {
    background-color: #003333;
    color: #00ffff;
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.6);
}

/* Improved progress layout */
.progress-container-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.progress-text {
    color: #bbb;
    font-weight: 600;
    width: 100px; /* Fixed width for alignment */
    text-align: right;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Keep these as-is if already present */
.progress-container {
    flex-grow: 1;
    height: 18px;
    background-color: #111;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 255, 255, 0.3);
}

.progress-container.glowing {
    box-shadow: 
        0 0 15px rgba(0, 170, 170, 0.8),  /* Outer glow */
        inset 0 1px 5px rgba(0, 170, 170, 0.4); /* Inner glow based on the progress bar */
}

.progress-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.05),
        transparent 70%
    ),
    linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 1;
}

.project .progress-bar {
    height: 100%;
    background-color: #00aaaa;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.project .progress-bar:hover {
    /* box-shadow:
        0 0 12px rgba(0, 255, 255, 0.8),
        0 0 20px rgba(0, 255, 255, 0.6),
        inset 0 0 5px rgba(0, 255, 255, 0.3); */
    animation: cyber-glow 2s infinite ease-in-out;
}

@keyframes cyber-glow {
    0%, 100% {
        box-shadow: 0 0 10px #00ffff;
    }
    50% {
        box-shadow: 0 0 18px #00ffff, 0 0 24px #008080;
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px rgba(0, 170, 170, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 170, 170, 0.5);
    }
}

.progress-bar.glow {
    animation: pulse-glow 2s infinite ease-in-out;
}


/* Table Styling for Social Links */
table {
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    border-collapse: collapse;
    background-color: #1c1c1c;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(2, 2, 2, 1);
}

/* Header styling */
th {
    text-align: center;
    padding: 15px;
    color: #f0f0f0;
    font-size: 1.2em;
}

td {
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
}

td a {
    display: inline-block;
    color: #00ffff;
    text-decoration: none;
}

tr:last-child td {
    padding-bottom: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.branding {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.branding img {
  height: 48px;
}

.text-group {
  display: flex;
  flex-direction: column;
}

.site-title {
  margin: 0;
  font-size: 1.8rem;
  color: #0ff;
  text-decoration: none;
  text-shadow: none;
}

.site-description {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-weight: bold;
  position: relative;
}

.nav-link::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background-color: #0ff;
  transition: width 0.3s ease-in-out;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* FAQ */
.faq-container {
    background-color: #1c1c1c;
    padding: 20px;
    margin: 8px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(2, 2, 2, 1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.faq-container:hover {
    box-shadow: 0px 8px 16px rgba(0, 255, 255, 0.6);
    transform: translateY(-10px);
}

.faq-container h3 {
    margin-top: 0;
    color: #00bbbb;
}

.faq-container a {
    color: #00aaaa;
    text-decoration: none;
    border-radius: 10px;
}

.faq-container a:hover {
    text-shadow: 0px 0px 2px #00aaaa;
}

/* Make all headers smooth and glowing */
h1, h2, h3, h4, h5, h6 {
    color: #00ffff;
    text-decoration: underline;
    text-decoration-color: #00ffff;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-shadow: 0px 0px 2px #00ffff;
    transition: color 0.3s, text-shadow 0.3s;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header nav ul {
        text-align: center;
    }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    .container {
        width: 95%;
    }
}