/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    z-index: 2;
    position: relative;
}

/* Skills Section */
.skills-category {
    margin-bottom: 3.5rem;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 600;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.skill-card {
    background: var(--secondary-bg);
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 180px;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

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

.skill-card span {
    font-size: 1rem;
    letter-spacing: 0.5px;
}
/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--secondary-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.project-image {
    height: 200px;
    background-color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-muted);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--border-color);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* Achievements & Certifications Grids */
@keyframes cardPopIn {
    0%   { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.achievements-grid, .certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.achievement-card, .cert-card {
    background: var(--secondary-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    animation: cardPopIn 0.5s ease both;
    text-decoration: none;
    color: var(--text-color);
}

/* Stagger animation delays for each card */
.achievement-card:nth-child(1), .cert-card:nth-child(1) { animation-delay: 0.05s; }
.achievement-card:nth-child(2), .cert-card:nth-child(2) { animation-delay: 0.15s; }
.achievement-card:nth-child(3), .cert-card:nth-child(3) { animation-delay: 0.25s; }
.achievement-card:nth-child(4), .cert-card:nth-child(4) { animation-delay: 0.35s; }
.achievement-card:nth-child(5), .cert-card:nth-child(5) { animation-delay: 0.45s; }
.achievement-card:nth-child(6), .cert-card:nth-child(6) { animation-delay: 0.55s; }

.cert-card {
    text-decoration: none;
    color: var(--text-color);
    border-color: var(--accent);
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.25);
}

.ach-icon, .cert-icon {
    font-size: 3rem;
}

.achievement-card h4, .cert-card h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 700;
}

.achievement-card p, .cert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.cert-date {
    margin-top: auto;
    font-size: 0.8rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.75rem;
}

.cert-link {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dashed var(--border-color);
}
.cert-link:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}
