/* Mobile Menu Styles */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #764ba2;
  padding: 0.5rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    padding: 5rem 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
}

/* Link Underline */
.nav-links a.active {
  color: var(--primary-color) !important;
  font-weight: bold !important;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Remove default link underline if present */
.nav-links a {
  text-decoration: none;
}

/* Overlay when menu is open */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.menu-overlay.active {
  display: block;
}
/* Better touch feedback */
.btn, .project-card, .skill-card {
  transition: transform 0.2s ease;
}

.btn:active, .project-card:active, .skill-card:active {
  transform: scale(0.96);
}

.social-link:active {
  transform: scale(0.9);
}



/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-shadow-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.2);
}

.btn-shadow-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.3);
}

.btn-shadow-secondary {
    background: var(--white);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.btn-shadow-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Cards */
/* Updated Skills Section CSS for 3-column layout */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    gap: 1.5rem;
}

.skills-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.category-title {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(118, 75, 162, 0.15);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.skill-icon {
    font-size: 1.3rem;
    min-width: 25px;
    text-align: center;
}

/* Responsive adjustments */
/* Mobile Overrides */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
        padding: 0 1rem; /* Add side padding */
    }

    .skills-category {
        padding: 1.2rem;
        margin-bottom: 1rem;
    }

    .category-title {
        font-size: 1.1rem;
        text-align: center;
        border-bottom: none;
        margin-bottom: 0.8rem;
        padding-bottom: 0.5rem;
        position: relative;
    }

    .category-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background: var(--primary-color);
    }

    .skills-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for skills */
        gap: 0.6rem;
    }

    .skill-item {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .skill-icon {
        font-size: 1.1rem;
    }
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Certification Cards */
.cert-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cert-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.cert-link, .toggle-sub {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.85em;
    border-radius: 4px;
    border: none;
    background: #f5f7fa;
    color: #1a237e;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(26,35,126,0.06);
}

.cert-link:hover, .toggle-sub:hover {
    background: #e3e7f7;
    color: #3949ab;
    text-decoration: underline;
}

.cert-link::before {
    content: "🔗";
    margin-right: 0.4em;
    font-size: 1em;
}

.toggle-sub::before {
    content: "📂";
    margin-right: 0.4em;
    font-size: 1em;
}

.sub-certs {
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e3e7f7;
    padding: 0.75em 1em;
    margin-top: 0.5em;
    box-shadow: 0 1px 4px rgba(26,35,126,0.04);
}

.sub-certs ul {
    margin: 0;
    padding-left: 1.2em;
}

.sub-certs li {
    margin-bottom: 0.35em;
}

.sub-certs .cert-link {
    font-size: 0.97em;
    padding: 0.25em 0.65em;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Logo Image Styles */
.logo img.profile-logo {
  width: 50px;              /* Adjust size as needed */
  height: 50px;             /* Make sure width and height are equal */
  border-radius: 50%;       /* Makes it circular */
  object-fit: cover;        /* Ensures image fills the circle */
  border: 2px solid #764ba2; /* Optional: adds a colored border */
  transition: transform 0.3s ease;
  animation: pulse 4s ease-in-out infinite; /* Pulsing animation */
}

.logo img.profile-logo:hover {
  transform: scale(1.1);    /* Slight zoom on hover */
}
