/* PTU Paper - Global Styles */

/* PTU Brand Colors (Approximate) */
:root {
    --ptu-red: #d32f2f;
    --ptu-blue: #1565c0;
    --ptu-yellow: #fbc02d;
    --ptu-mint: #f0fdfa;
    /* Added from user image */
    --ptu-pink: #fdf2f8;
    /* Added from user image */
}

/* Base font setup */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
    background-color: var(--ptu-mint);
    -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5 {
    letter-spacing: -0.025em;
    color: #0f172a;
}

/* --- ANIMATIONS (Global) --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(211, 47, 47, 0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.3s ease-out forwards;
}

@keyframes pulse-slow {

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

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-zoom-in {
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Course & Semester cards staggered animation */
.course-card,
.sem-card {
    animation: slideUp 0.4s ease-out forwards;
    opacity: 0;
}

.course-card:nth-child(1),
.sem-card:nth-child(1) {
    animation-delay: 0.05s;
}

.course-card:nth-child(2),
.sem-card:nth-child(2) {
    animation-delay: 0.1s;
}

.course-card:nth-child(3),
.sem-card:nth-child(3) {
    animation-delay: 0.15s;
}

.course-card:nth-child(4),
.sem-card:nth-child(4) {
    animation-delay: 0.2s;
}

.course-card:nth-child(5),
.sem-card:nth-child(5) {
    animation-delay: 0.25s;
}

.course-card:nth-child(6),
.sem-card:nth-child(6) {
    animation-delay: 0.3s;
}

.course-card:nth-child(7),
.sem-card:nth-child(7) {
    animation-delay: 0.35s;
}

.course-card:nth-child(8),
.sem-card:nth-child(8) {
    animation-delay: 0.4s;
}

.course-card:nth-child(9),
.sem-card:nth-child(9) {
    animation-delay: 0.45s;
}

.course-card:nth-child(10),
.sem-card:nth-child(10) {
    animation-delay: 0.5s;
}

.course-card:nth-child(n+11),
.sem-card:nth-child(n+11) {
    animation-delay: 0.55s;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hover Effects */
.nav-link {
    position: relative;
    font-weight: 500;
    color: #475569;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--ptu-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--ptu-red);
    transition: width 0.3s ease;
}

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

/* Card Styles matching PTU Theme */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: var(--ptu-blue);
    box-shadow: 0 10px 25px -5px rgba(21, 101, 192, 0.15), 0 8px 10px -6px rgba(21, 101, 192, 0.1);
}

/* Breadcrumb Styling */
nav a {
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--ptu-blue) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ptu-blue);
}

/* Utility */
.text-ptu-red {
    color: var(--ptu-red);
}

.text-ptu-blue {
    color: var(--ptu-blue);
}

.bg-ptu-red {
    background-color: var(--ptu-red);
}

.bg-ptu-blue {
    background-color: var(--ptu-blue);
}

/* Glassmorphism effect for headers */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    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;
}

.btn-shine:hover::after {
    left: 100%;
}