* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f3460;
    --secondary-color: #00d4ff;
    --accent-color: #ff006e;
    --gradient-1: #0f3460;
    --gradient-2: #533483;
    --gradient-3: #00d4ff;
    --text-dark: #1a1a2e;
    --text-light: #777;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #00d4ff;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Navigation ==================== */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.3);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ==================== Hero Section ==================== */
.hero {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #00d4ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Profile Photo */
.profile-photo-container {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.profile-photo-container::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    top: -10px;
    left: -10px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 24px;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #00a8cc);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

/* ==================== Experience Section ==================== */
.experience {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 50%, #f0ffff 100%);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #00d4ff 100%);
    z-index: 0;
}

.experience::after {
    content: '';
    position: absolute;
    top: 200px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.experience h2 {
    color: #ffffff;
    font-size: 40px;
    text-align: center;
    position: relative;
    z-index: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin: 0;
    margin-bottom: 100px;
}

.timeline {
    position: relative;
    padding: 20px 0;
    z-index: 5;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--accent-color));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    padding-right: 50px;
    width: 48%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    padding-left: 50px;
    width: 48%;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    top: 10px;
    z-index: 10;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.5);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.5);
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 52, 96, 0.1);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.05), transparent);
    border-radius: 8px;
    pointer-events: none;
}

.timeline-content:hover {
    box-shadow: 0 16px 40px rgba(15, 52, 96, 0.2);
    transform: translateY(-5px);
    border-left: 4px solid var(--accent-color);
}

.timeline-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.timeline-content .company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.timeline-content .date {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.timeline-content .project {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.timeline-content ul {
    list-style: none;
    margin-left: 0;
    position: relative;
    z-index: 1;
}

.timeline-content li {
    margin-bottom: 8px;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
    transition: var(--transition);
}

.timeline-content li:hover {
    color: var(--primary-color);
    padding-left: 25px;
}

.timeline-content li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ==================== Skills Section ==================== */
.skills {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 50%, #fff5f8 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.skills::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.skills h2 {
    font-size: 40px;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.skill-category {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.08) 0%, rgba(83, 52, 131, 0.08) 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.12) 0%, rgba(83, 52, 131, 0.12) 100%);
    border-left: 4px solid var(--accent-color);
}

.skill-category:hover::before {
    top: -30%;
    right: -30%;
}

.skill-category h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tag {
    background: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.tag:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(15, 52, 96, 0.3);
    border-color: transparent;
}

.tag:hover::before {
    opacity: 1;
}

/* ==================== Education Section ==================== */
.education {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0ffff 100%);
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(83, 52, 131, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.education h2 {
    font-size: 40px;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.education-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 255, 255, 0.95) 100%);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(15, 52, 96, 0.1);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.education-card:hover {
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-8px);
    border-left: 4px solid var(--accent-color);
}

.education-card:hover::before {
    width: 150px;
    height: 150px;
    top: -50px;
    right: -50px;
}

.education-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.validity {
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.awards {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(83, 52, 131, 0.15) 100%);
    padding: 40px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.1);
}

.awards::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.awards h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.award-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    border-left: 4px solid #ffc107;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.award-item:hover {
    box-shadow: 0 12px 24px rgba(255, 193, 7, 0.25);
    transform: translateX(10px);
}

.award-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.award-item .company {
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 10px;
}

.award-item .description {
    color: var(--text-light);
}

/* ==================== Resources Section ==================== */
.resources {
    padding: 100px 20px;
    background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #1a0a3e 100%);
    position: relative;
    overflow: hidden;
}

.resources::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.resources::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite reverse;
}

.resources h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.resource-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 255, 0.98) 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.resource-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: 0 24px 48px rgba(0, 212, 255, 0.3);
    transform: translateY(-15px);
}

.resource-card:hover::after {
    top: -20%;
    right: -20%;
}

.resource-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.resource-card:nth-child(1) .resource-icon {
    animation-delay: 0s;
}

.resource-card:nth-child(2) .resource-icon {
    animation-delay: 0.1s;
}

.resource-card:nth-child(3) .resource-icon {
    animation-delay: 0.2s;
}

.resource-card:nth-child(4) .resource-icon {
    animation-delay: 0.3s;
}

.resource-card:nth-child(5) .resource-icon {
    animation-delay: 0.4s;
}

.resource-card:nth-child(6) .resource-icon {
    animation-delay: 0.5s;
}

.resource-card:nth-child(7) .resource-icon {
    animation-delay: 0.6s;
}

.resource-card:nth-child(8) .resource-icon {
    animation-delay: 0.7s;
}

.resource-card:nth-child(9) .resource-icon {
    animation-delay: 0.8s;
}

.resource-card:nth-child(10) .resource-icon {
    animation-delay: 0.9s;
}

.resource-card:nth-child(11) .resource-icon {
    animation-delay: 1s;
}

.resource-card:nth-child(12) .resource-icon {
    animation-delay: 1.1s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.resource-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.resource-card .author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.resource-card .description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 50%, #f0ffff 100%);
    position: relative;
    text-align: center;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.1), transparent);
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.1) 100%);
    pointer-events: none;
}

.contact h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    padding: 15px 25px;
    border-radius: 8px;
    border: 2px solid transparent;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: var(--transition);
}

.contact-link:hover::after {
    width: 100%;
}

.contact-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.2), rgba(0, 212, 255, 0.2));
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.contact-link .icon {
    font-size: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.social-btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(15, 52, 96, 0.3);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 212, 255, 0.4);
}

.social-btn:hover::before {
    left: 100%;
}

/* ==================== Footer ==================== */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--gradient-2));
    color: white;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.1);
}

.footer p {
    position: relative;
    z-index: 1;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .subtitle {
        font-size: 20px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .profile-photo-container::before {
        width: 170px;
        height: 170px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 60px;
        padding-right: 0;
    }

    .timeline-dot {
        left: 20px;
    }

    .hero {
        padding: 60px 20px;
    }

    .experience,
    .skills,
    .education,
    .resources,
    .contact {
        padding: 60px 20px;
    }

    .experience h2,
    .skills h2,
    .education h2,
    .resources h2,
    .contact h2 {
        font-size: 32px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .experience::before {
        height: 200px;
    }

    .experience::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .subtitle {
        font-size: 18px;
    }

    .description {
        font-size: 16px;
    }

    .profile-photo {
        width: 120px;
        height: 120px;
    }

    .profile-photo-container::before {
        width: 140px;
        height: 140px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .contact-link {
        flex-direction: column;
        width: 100%;
    }

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
    }
}

/* ==================== Resources Category Title ==================== */
.resources-category {
    margin-bottom: 80px;
}

.category-title {
    font-size: 32px;
    color: white;
    text-align: center;
    margin: 60px 0 20px 0;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.category-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* ==================== Udemy Grid ==================== */
.udemy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* ==================== Udemy Card ==================== */
.udemy-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 255, 0.98) 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 5px solid transparent;
}

.udemy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: height 0.3s ease;
}

.udemy-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.udemy-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 24px 48px rgba(0, 212, 255, 0.3);
}

.udemy-card:hover::after {
    top: -20%;
    right: -20%;
}

.udemy-card:hover::before {
    height: 8px;
}

.udemy-logo {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.udemy-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.udemy-card .instructor {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(83, 52, 131, 0.15));
    color: var(--primary-color);
}

.udemy-card .course-description {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* ==================== Course Tags ==================== */
.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.course-tag {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
    cursor: default;
}

.course-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* ==================== Competitive Programming Grid ==================== */
.competitive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* ==================== Competitive Card ==================== */
.competitive-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 255, 0.98) 100%);
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.competitive-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 24px 48px rgba(0, 212, 255, 0.3);
}

.platform-header {
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.platform-header.hackerrank {
    background: linear-gradient(135deg, #2EC866 0%, #1DA745 100%);
}

.platform-header.leetcode {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
}

.platform-icon {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-info h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    margin-bottom: 5px;
}

.platform-info p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* ==================== Stats Section ==================== */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(83, 52, 131, 0.05));
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

/* ==================== Skills Section ==================== */
.skills-section {
    padding: 20px 30px;
    position: relative;
    z-index: 1;
}

.skills-section h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
}

.skill-badge:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* ==================== Visit Button ==================== */
.visit-btn {
    display: inline-block;
    width: calc(100% - 60px);
    margin: 0 30px 30px 30px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(15, 52, 96, 0.2);
    position: relative;
    z-index: 1;
}

.visit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.3);
}

/* ==================== Certificates Grid ==================== */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* ==================== Certificate Card ==================== */
.certificate-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 255, 0.98) 100%);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 5px solid transparent;
    border-image: linear-gradient(90deg, var(--secondary-color), var(--accent-color)) 1;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: height 0.3s ease;
}

.certificate-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 24px 48px rgba(0, 212, 255, 0.3);
}

.certificate-card:hover::after {
    top: -20%;
    right: -20%;
}

.certificate-card:hover::before {
    height: 8px;
}

.cert-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.certificate-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.certificate-card .issuer {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* ==================== Certificate Details ==================== */
.cert-details {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.08), rgba(0, 212, 255, 0.08));
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cert-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.cert-detail-item:last-child {
    margin-bottom: 0;
}

.cert-detail-item .label {
    color: var(--text-light);
    font-weight: 600;
}

.cert-detail-item .value {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==================== Certificate Tags ==================== */
.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.cert-tag {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-color);
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
}

.cert-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* ==================== View Certificate Button ==================== */
.view-cert-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(15, 52, 96, 0.2);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.view-cert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.3);
}

/* ==================== Responsive - Competitive Cards ==================== */
@media (max-width: 768px) {
    .competitive-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .udemy-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .category-title {
        font-size: 28px;
        margin: 15px 0 15px 0;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px 20px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 11px;
    }

    .certificate-card,
    .udemy-card {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .competitive-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .udemy-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 24px;
    }

    .cert-tags,
    .course-tags,
    .skill-badges {
        gap: 6px;
    }

    .cert-tag,
    .course-tag,
    .skill-badge {
        font-size: 11px;
        padding: 5px 10px;
    }

    .platform-header {
        padding: 20px;
    }

    .stats {
        gap: 10px;
        padding: 12px 15px;
    }

    .skills-section {
        padding: 15px 20px;
    }

    .visit-btn {
        width: calc(100% - 40px);
        margin: 0 20px 20px 20px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ==================== COURSE CONTROLS ==================== */
.course-controls {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* ==================== SEARCH CONTAINER ==================== */
.search-container {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
    border-color: var(--secondary-color);
}

.search-input::placeholder {
    color: #999;
}

.clear-search-btn {
    padding: 10px 15px;
    background: rgba(255, 0, 110, 0.2);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 16px;
}

.clear-search-btn:hover {
    background: var(--accent-color);
    color: white;
}

/* ==================== FILTERS AND SORTING ==================== */
.filters-sorting {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 25px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    outline: none;
}

.filter-select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.15);
}

.filter-select:focus {
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.filter-select option {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 10px;
}

/* ==================== EXPORT BUTTON ==================== */
.export-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    box-shadow: 0 6px 12px rgba(46, 204, 113, 0.3);
}

.export-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(46, 204, 113, 0.4);
}

.export-btn:active {
    transform: translateY(-1px);
}

/* ==================== RESULTS COUNT ==================== */
.results-count {
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 25px;
}

#courseCount {
    color: var(--secondary-color);
    font-weight: 700;
}

/* ==================== NO COURSES MESSAGE ==================== */
.no-courses-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(0, 212, 255, 0.3);
}

.no-courses-message p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.reset-filters-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.reset-filters-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 212, 255, 0.3);
}

/* ==================== HIGHLIGHT MARK IN SEARCH ====================*/
mark {
    background: linear-gradient(120deg, rgba(255, 193, 7, 0.4), rgba(255, 152, 0, 0.4));
    color: inherit;
    font-weight: 700;
    padding: 2px 4px;
    border-radius: 3px;
}

/* ==================== PAGINATION CONTROLS ==================== */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}

.pagination-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(15, 52, 96, 0.2);
    font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.page-info {
    min-width: 150px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 15px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}

#pageNumber {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ==================== KEYBOARD HELP ==================== */
.keyboard-help {
    text-align: center;
    margin-top: 30px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    position: relative;
    z-index: 2;
}

.keyboard-help p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.keyboard-help strong {
    color: var(--secondary-color);
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
    transition: bottom 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

.notification.show {
    bottom: 30px;
}

/* ==================== ANIMATION FOR COURSE CARDS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .filters-sorting {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .export-btn {
        width: 100%;
    }

    .pagination-controls {
        flex-wrap: wrap;
        gap: 15px;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 100px;
    }

    .page-info {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 15px;
        order: 3;
        width: 100%;
    }

    .search-input {
        font-size: 14px;
        padding: 12px 14px;
    }

    .keyboard-help {
        font-size: 12px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .filters-sorting {
        flex-direction: column;
        gap: 12px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group label {
        font-size: 13px;
    }

    .filter-select {
        width: 100%;
        font-size: 13px;
        padding: 9px 12px;
    }

    .export-btn {
        width: 100%;
        font-size: 13px;
        padding: 9px 16px;
    }

    .pagination-controls {
        gap: 10px;
        margin-top: 30px;
    }

    .pagination-btn {
        padding: 10px 12px;
        font-size: 12px;
        flex: 1;
        min-width: 70px;
    }

    .page-info {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 12px;
        order: 3;
        width: 100%;
    }

    #pageNumber {
        font-size: 12px;
    }

    .results-count {
        font-size: 13px;
        padding: 10px 14px;
    }

    .search-container {
        flex-direction: column;
    }

    .search-input {
        font-size: 14px;
        padding: 11px 12px;
    }

    .clear-search-btn {
        width: 100%;
    }

    .keyboard-help {
        font-size: 11px;
        padding: 10px;
    }

    .no-courses-message {
        padding: 40px 15px;
    }

    .no-courses-message p {
        font-size: 16px;
    }
}

/* ==================== BOOK METADATA ====================*/
.book-meta {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.book-category {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(83, 52, 131, 0.2));
    color: var(--gradient-2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--gradient-2);
}

.book-year {
    background: rgba(255, 0, 110, 0.2);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--accent-color);
}

/* ==================== BOOK TOPICS ====================*/
.book-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.topic-tag {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    color: #d438e3;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #2ecc71;
    transition: var(--transition);
}

.topic-tag:hover {
    background: #2ecc71;
    color: white;
    transform: translateY(-2px);
}

/* ==================== BOOK RATING ====================*/
.book-rating {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #f39c12;
    letter-spacing: 1px;
}

/* ==================== RESOURCE CARD ENHANCEMENTS ====================*/
.resource-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 255, 0.98) 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.resource-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.resource-card:hover {
    box-shadow: 0 24px 48px rgba(0, 212, 255, 0.2);
    transform: translateY(-10px);
}

.resource-card:hover::after {
    top: -20%;
    right: -20%;
}

.resource-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.resource-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.resource-card .author {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.resource-card .book-meta,
.resource-card .book-topics,
.resource-card .book-rating {
    position: relative;
    z-index: 1;
}

/* ==================== RESPONSIVE BOOK CARDS ====================*/
@media (max-width: 768px) {
    .resource-card {
        padding: 20px;
    }

    .resource-icon {
        font-size: 48px;
    }

    .resource-card h4 {
        font-size: 18px;
    }

    .book-meta,
    .book-topics {
        gap: 8px;
    }

    .book-category,
    .book-year {
        font-size: 11px;
        padding: 3px 8px;
    }

    .topic-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .resource-card {
        padding: 15px;
    }

    .resource-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .resource-card h4 {
        font-size: 16px;
    }

    .resource-card .author {
        font-size: 13px;
    }

    .book-meta {
        flex-direction: column;
        gap: 6px;
    }

    .book-category,
    .book-year {
        font-size: 10px;
        padding: 3px 8px;
    }

    .topic-tag {
        font-size: 9px;
        padding: 2px 6px;
    }

    .book-rating {
        font-size: 12px;
    }
}

/* ==================== CERTIFICATE CARD ENHANCEMENTS ====================*/
.certificate-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 255, 255, 0.98) 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-top: 5px solid transparent;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transition: height 0.3s ease;
}

.certificate-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
}

.certificate-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 24px 48px rgba(0, 212, 255, 0.3);
}

.certificate-card:hover::after {
    top: -20%;
    right: -20%;
}

.certificate-card:hover::before {
    height: 8px;
}

.certificate-card.expiring-soon {
    border-top: 5px solid #f39c12;
}

.certificate-card.expiring-soon::before {
    background: #f39c12;
}

/* ==================== CERTIFICATE ICON ====================*/
.cert-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: bounce 2s ease-in-out infinite;
}

/* ==================== CERTIFICATE TITLE AND ISSUER ====================*/
.certificate-card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.certificate-card .issuer {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* ==================== CERTIFICATE STATUS ====================*/
.cert-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(39, 174, 96, 0.15));
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.status-expired {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(192, 57, 43, 0.15));
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.status-lifetime {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(108, 52, 131, 0.15));
    color: #9b59b6;
    border: 1px solid #9b59b6;
}

/* ==================== CERTIFICATE DETAILS ====================*/
.cert-details {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.08), rgba(0, 212, 255, 0.08));
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cert-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
}

.cert-detail-item:last-child {
    margin-bottom: 0;
}

.cert-detail-item .label {
    color: var(--text-light);
    font-weight: 600;
}

.cert-detail-item .value {
    color: var(--primary-color);
    font-weight: 700;
    word-break: break-all;
}

.cert-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* ==================== CERTIFICATE TAGS ====================*/
.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.cert-tag {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.1), rgba(0, 212, 255, 0.1));
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    transition: var(--transition);
    cursor: default;
}

.cert-tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: white;
    transform: translateY(-2px);
}

/* ==================== EXPIRING WARNING ====================*/
.expiring-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.2));
    color: #f39c12;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    border-left: 3px solid #f39c12;
}

/* ==================== VIEW CERTIFICATE BUTTON ====================*/
.view-cert-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 8px 16px rgba(15, 52, 96, 0.2);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.view-cert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.3);
}

.view-cert-btn:active {
    transform: translateY(-1px);
}

/* ==================== CERTIFICATES GRID ====================*/
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

/* ==================== RESPONSIVE CERTIFICATE CARDS ====================*/
@media (max-width: 768px) {
    .certificate-card {
        padding: 20px;
    }

    .cert-icon {
        font-size: 48px;
    }

    .certificate-card h4 {
        font-size: 18px;
    }

    .cert-details {
        padding: 12px;
    }

    .cert-detail-item {
        font-size: 12px;
    }

    .cert-tag {
        font-size: 11px;
        padding: 5px 10px;
    }

    .cert-status {
        font-size: 11px;
        padding: 5px 12px;
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-card {
        padding: 15px;
    }

    .cert-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .certificate-card h4 {
        font-size: 16px;
    }

    .certificate-card .issuer {
        font-size: 13px;
    }

    .cert-details {
        padding: 10px;
    }

    .cert-detail-item {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .cert-tags {
        gap: 6px;
    }

    .cert-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .cert-status {
        font-size: 10px;
        padding: 4px 10px;
    }

    .expiring-warning {
        font-size: 11px;
        padding: 6px 10px;
    }

    .view-cert-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ==================== PAGINATION BUTTON STATES ====================*/
.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    pointer-events: none;
}

.pagination-btn:disabled:hover {
    box-shadow: none;
    transform: none;
}

.pagination-btn:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 212, 255, 0.3);
}

.pagination-btn:not(:disabled):active {
    transform: translateY(-1px);
}

/* ==================== PAGINATION CONTAINER ====================*/
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.page-info {
    min-width: 150px;
    text-align: center;
    font-weight: 600;
    color: white;
    font-size: 15px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
}

#pageNumber,
#bookPageNumber,
#certPageNumber {
    display: block;
    color: var(--secondary-color);
    font-weight: 700;
}

/* ==================== RESPONSIVE PAGINATION ====================*/
@media (max-width: 768px) {
    .pagination-controls {
        gap: 15px;
        margin-top: 40px;
    }

    .pagination-btn {
        padding: 10px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 90px;
    }

    .page-info {
        min-width: 120px;
        font-size: 13px;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .pagination-controls {
        gap: 10px;
        margin-top: 30px;
    }

    .pagination-btn {
        padding: 9px 16px;
        font-size: 12px;
        flex: 1;
        min-width: 70px;
    }

    .page-info {
        min-width: 100px;
        font-size: 12px;
        padding: 6px 12px;
    }

    #pageNumber,
    #bookPageNumber,
    #certPageNumber {
        font-size: 12px;
    }
}

/* ==================== VISITOR COUNTER ==================== */
.visitor-counter {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.visitor-counter p {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

#visitCount {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 16px;
    padding: 0 0px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 4px;
}