/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Verdana', sans-serif;
    margin-bottom: 10px;
}

h1 {
    font-size: 2.7rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

p {
    margin: 0 0 15px;
}

/* Layout */
.main-content {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding-bottom: 60px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    text-align: center;
    min-height: 300px;
    padding: 50px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

header .container {
    width: 100%;
}

header .profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid #4caf50;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

header .profile-img:hover {
    transform: scale(1.1);
    border-color: #45a049;
    box-shadow: 0 6px 15px rgba(72, 239, 128, 0.3);
}

.highlight {
    color: #4caf50;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.skill-category {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #4caf50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    font-size: 1.2em;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #2a2a2a;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 7px;
}

.skill-item:hover {
    background: #333;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.skill-item i {
    font-size: 1.5em;
    color: #4caf50;
    width: 30px;
    text-align: center;
}

.skill-name {
    font-weight: 500;
    font-size: 1.1em;
}

/* Projects */
.project {
    margin-bottom: 30px;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

.project h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #4caf50;
}

.btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    background: #4caf50;
    color: #fff;
    padding: 10px 15px;
    margin-top: 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #2e7d32;
}

/* Socials */
.social-links {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 10px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.social-icon {
    font-size: 2rem;
    color: #4caf50;
    transition: color 0.3s;
}

.social-icon:hover {
    color: #45a049;
}

/* Footer */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #1d1d1d;
    color: #777;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

#copyright {
    margin: 0;
}


/* Project Tech Tags */
.project-tech {
    margin: 10px 0;
}

.project-tech span {
    background: #2a2a2a;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #4caf50;
}

/* Remove old hackathon card styles */
.hackathon-entry, .hackathon-entry:hover, .hackathon-meta, .two-column, .section, .skills-list, .skills-list li, ul.bullet-list, ul.bullet-list li, .hackathon-content, .hackathon-content h3, .hackathon-content ul, .hackathon-content p, .hackathon-content .project-links {
    all: unset;
    display: revert;
}

/* New hackathon card styles */
.hackathon-card {
  display: flex;
  background: #1e1e1e;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  margin-bottom: 32px;
  overflow: hidden;
  transition: transform 0.2s;
}
.hackathon-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 18px rgba(76,175,80,0.15);
}
.hackathon-card-image {
  flex: 0 0 180px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hackathon-card-image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 0;
}
.hackathon-card-content {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hackathon-card-content h3 {
  margin: 0 0 6px 0;
  color: #4caf50;
  font-size: 1.4rem;
}
.hackathon-card-meta {
  font-size: 0.95rem;
  color: #aaa;
  display: flex;
  gap: 18px;
  margin-bottom: 6px;
}
.hackathon-card-desc {
  margin: 0 0 8px 0;
  color: #eee;
}
.hackathon-card-tech {
  font-size: 0.95rem;
  color: #4caf50;
  margin-bottom: 6px;
}
.hackathon-card-tech ul {
  display: inline;
  padding: 0;
  margin: 0;
  list-style: none;
}
.hackathon-card-tech li {
  display: inline-block;
  background: #222;
  color: #4caf50;
  border-radius: 4px;
  padding: 2px 10px;
  margin-right: 6px;
  font-size: 0.92em;
}
.hackathon-card-achievement {
  color: #fff;
  background: #388e3c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.60em;
  margin-left: 12px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(76,175,80,0.10);
  margin-bottom: 0;
  vertical-align: middle;
}
.hackathon-card-achievement i {
  margin-right: 4px;
  font-size: 1em;
  color: #ffd700;
}
.hackathon-card-links {
  margin-top: 8px;
  display: flex;
  gap: 10px;
}
.hackathon-card-links .btn-h {
  background: #2a2a2a;
  color: #4caf50;
  border: 1px solid #4caf50;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
}
.hackathon-card-links .btn-h:hover {
  background: #4caf50;
  color: #fff;
}
@media (max-width: 700px) {
  .hackathon-card {
    flex-direction: column;
    align-items: stretch;
  }
  .hackathon-card-image img {
    width: 100%;
    height: 180px;
  }
}

/* Navigation */
.nav-links {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    height: auto;
    width: 70px;
    background: rgba(30, 30, 30, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(76, 175, 80, 0.1);
    z-index: 1000;
    /* Increased z-index to ensure it's above everything */
    border: 1px solid rgba(76, 175, 80, 0.1);
    backdrop-filter: blur(10px);
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 50px;
    text-align: center;
    font-size: 0.75rem;
}

.nav-links a i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.nav-links a:hover {
    background-color: #2a2a2a;
    transform: translateY(-2px);
    color: #4caf50;
}

.nav-links a.active {
    background-color: #4caf50;
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.nav-links a.active:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Animations and Transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container section,
.project,
.hackathon-entry {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.scroll-top.visible {
    opacity: 1;
    cursor: pointer;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: #45a049;
}

/* Loading animation */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading.visible {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #4caf50;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: 50%;
        bottom: 20px;
        top: auto;
        transform: translateX(-50%);
        width: 75%;
        /* Reduced width to make it thinner */
        height: 60px;
        /* Slightly reduced height */
        flex-direction: row;
        padding: 8px;
        gap: 0;
        border-radius: 12px;
        justify-content: space-between;
    }

    .nav-links a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-links a i {
        font-size: 1.1rem;
    }
}

.project-image {
    width: 100%;
    /* height: 200px; */
    max-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}