.project h3 {
    color: #00E5FF;
    font-size: 1.5em;
    margin-bottom: 8px;
    font-weight: bold;
}

.project p {
    line-height: 1.6;
    margin-bottom: 12px;
}body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0A0F1F;
    color: #E0E0E0;
}

header {
    background-color: #1B1F38;
    color: #E0E0E0;
    text-align: center;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    /* Prevent any unwanted movement */
    will-change: padding, background-color;
}

/* Compact header style when scrolling */
header.compact-header {
    padding: 10px;
    background-color: rgba(27, 31, 56, 0.95); /* Semi-transparent */
    backdrop-filter: blur(10px);
}

header.compact-header h1 {
    font-size: 1.5em;
    margin: 0;
}

header.compact-header p {
    font-size: 0.9em;
    margin: 5px 0;
}

/* Add a small transition effect for smooth size change */
header h1, header p {
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: #A259FF !important;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

nav a.active {
    color: #00E5FF !important;
    font-weight: bold;
    border-bottom: 2px solid #00E5FF;
}

nav a:visited {
    color: #A259FF !important;  /* Force visited links to be same as normal links */
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
}

nav a:active {
    color: #A259FF !important;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s;
    background-color: transparent !important;
    box-shadow: none !important;
}

nav a:hover {
    color: #00E5FF !important; /* Hover color */
}

section {
    padding: 30px;
    margin: 30px auto;
    max-width: 850px;
    background: #1B1F38;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    animation: fadeIn 0.8s ease-out;
    border: 1px solid rgba(162, 89, 255, 0.1);
}

/* Alternating section backgrounds */
section:nth-child(odd) {
    background: #1B1F38;
}

section:nth-child(even) {
    background: #232845;
}

/* Improved headings */
section h2 {
    color: #A259FF;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.5px;
    position: relative;
}

section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #A259FF, #00E5FF);
    border-radius: 3px;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #A259FF;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

#about {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background-color: #1B1F38;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#about img {
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

#about h2 {
    color: #A259FF;
    font-size: 2em;
}

#about p {
    color: #E0E0E0;
    font-size: 1.1em;
    line-height: 1.6;
}

.project {
    border-left: 4px solid #A259FF;
    padding: 15px 15px 15px 20px;
    margin-bottom: 25px;
    background: #232845;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #00E5FF;
}

.project-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, #A259FF, #00C2FF);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.project-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #00C2FF, #A259FF);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.4);
}

.credential-button {
    color: #E0E0E0;
    text-decoration: none;
    background-color: #A259FF;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 1em;
    transition: background-color 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.credential-button:hover {
    background: linear-gradient(to right, #6C9EFF, #A259FF);
    color: white;
    transform: scale(1.05); /* Slight zoom */
    box-shadow: 0px 0px 15px rgba(162, 89, 255, 0.5); /* Glow effect */
}

.contact-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    font-size: 1.2em;
    color: #6C9EFF;
    border: 2px solid;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    border-image: linear-gradient(to right, #6C9EFF, #A259FF) 1;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Hover Effect: Gradient Fill + Glow */
.contact-button:hover {
    background: linear-gradient(to right, #6C9EFF, #A259FF);
    color: white;
    transform: scale(1.05); /* Slight zoom */
    box-shadow: 0px 0px 15px rgba(162, 89, 255, 0.5); /* Glow effect */
}

.projects {
    padding: 30px;
    margin: 30px auto;
    max-width: 850px;
    background: #232845;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(162, 89, 255, 0.1);
}

* {
    -webkit-tap-highlight-color: transparent !important;
}

/* Main content */
#content {
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

a:focus, button:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

div:focus {
    outline: none !important;
}

*::before,
*::after {
    background: transparent !important;
    box-shadow: none !important;
    animation: none !important;
}

*:focus,
*:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Add these styles to your existing CSS */

/* Skills grid layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #1B1F38;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #232845;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 120px;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #232845, #2A3154);
}

.skill-filter {
    background: #1B1F38;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.skill-filter:hover {
    background: linear-gradient(45deg, #A259FF, #00C2FF) !important;
    transform: translateY(-2px);
}

.skill-filter.active {
    background: linear-gradient(45deg, #A259FF, #00C2FF) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .skill-filter {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .skill-item {
        padding: 15px;
        height: 100px;
    }
    
    .skill-item i, 
    .skill-item span:first-child {
        font-size: 40px !important;
    }
}

.flex-col:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(145deg, #232845, #2A3154);
}

/* For Kubernetes icon */
.fa-dharmachakra {
    transform: rotate(45deg);
}

div[style*="width: 160px; height: 160px;"] {
    cursor: pointer;
    transition: all 0.3s ease;
}

div[style*="width: 160px; height: 160px;"]:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(145deg, #1B1F38, #2A3154);
    border: 1px solid rgba(162, 89, 255, 0.2);
}