body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--foreground);
    line-height: 1.6;
    scroll-behavior: smooth;
    background: linear-gradient(-45deg, #ffe0fa, #fed2ff, #ecd6ff, #ffe0f0);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
    overflow-x: hidden;
}

[data-theme="dark"] body {
    /* Use the dark gradient defined in styles.css */
    background: var(--dark-body-bg);
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Smooth Hierarchical Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

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

@keyframes scale-in-gentle {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

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

@keyframes float-gentle {

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

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse-glow-slow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(169, 85, 247, 0.3);
    }

    50% {
        box-shadow: 0 0 50px rgba(169, 85, 247, 0.6);
    }
}

@keyframes slideDown-smooth {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-80px);
    }

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

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(80px);
    }

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

@keyframes fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-in {
    animation: fade-in-up 0.6s ease-out forwards;
}

.fade-out {
    animation: fade-out 0.3s ease-out forwards;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

* Buttons with smooth interactions */ .btn {
    padding: 0.68rem 1.68rem;
    border-radius: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-left: 1.75rem;
    text-decoration: none;
    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 1s ease, height 1s ease;
}

.get-started-btn {
    animation: fade-in-up 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    animation: fade-in-up 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    box-shadow: 0 10px 25px rgba(169, 85, 247, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(169, 85, 247, 0.5);
}

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

.btn-outline:hover {
    background: #d9adff;
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(169, 85, 247, 0.4);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    background-color: white;
}

.learn-more-btn {
    padding: 1rem 2rem;
    background-color: transparent;
    border: 2px solid #4c1d65a7;
    animation: fade-in-up 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    box-shadow: 0 10px 25px rgba(169, 85, 247, 0.2);
}

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




/* ===== Sections ===== */
.section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 4.5rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: 3rem;
    }

    .section-subtitle {
        font-size: 1.125rem;
    }
}

/* ===== Tabs ===== */
.tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-buttons {
    display: inline-flex;
    background: var(--card);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 1rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 0 40px hsl(262 83% 58% / 0.3);
}

@media (min-width: 640px) {
    .tab-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

.expand-btn:hover {
    background: rgba(168, 85, 247, 0.1);
}

.expand-icon {
    transition: transform 0.3s ease;
}

.expand-icon.rotated {
    transform: rotate(180deg);
}


/* ===== Events ===== */
.event-card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px hsl(262 83% 58% / 0.3);
}

.event-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.event-type-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    background: linear-gradient(135deg, hsl(190, 95%, 45%), hsl(262, 83%, 58%));
    color: white;
}

.event-attendees {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.event-title {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.event-details {
    margin-bottom: 1rem;
}

.event-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.event-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    /* display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; */
    overflow: hidden;
}

.event-speaker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 1rem;
}

.speaker-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.speaker-info {
    font-size: 0.75rem;
}

.speaker-label {
    font-weight: 500;
    color: var(--foreground);
}

.speaker-name {
    color: var(--muted-foreground);
}

.register-btn {
    margin-left:0;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 0.85rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: 'Tilt Neon', cursive;
}

/* ===== Grid Layout ===== */
.alumni-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

@media (min-width: 640px) {
    .alumni-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .alumni-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Modal Animations ===== */
@keyframes modal-pop-in {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes checkmark-pop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Registration Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-overlay:not(.hidden) {
    opacity: 1;
}

.modal-content {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}
.modal-overlay:not(.hidden) .modal-content {
    animation: modal-pop-in 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted-foreground);
    transition: transform 0.3s ease, color 0.3s ease;
}
.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.modal-title { text-align: center; margin-bottom: 0.5rem; font-size: 1.25rem; font-weight: bold; }
.modal-subtitle { text-align: center; color: var(--muted-foreground); margin-bottom: 2rem; }
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 500; color: var(--foreground); }
.form-group input { padding: 0.75rem; border-radius: 0.5rem; border: 2px solid var(--border); background: var(--muted); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2); }
.modal-form .btn {
    margin-left: 0; /* Override default button margin */
}

[data-theme="dark"] .form-group input {
    color-scheme: dark; /* Ensures text is visible in dark mode */
    color: var(--foreground);
}

.form-group-checkbox { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.form-group-checkbox label { font-weight: 500; color: var(--foreground); cursor: pointer; }
.form-group-checkbox input { width: auto; }

.confirmation-icon-wrapper { display: flex; justify-content: center; margin-bottom: 1rem; }
.confirmation-icon { 
    color: hsl(142, 76%, 46%); 
    background: hsla(142, 76%, 46%, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmark-pop 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.confirmation-icon svg { stroke-width: 2; }
.w-full { width: 100%; }

.close-btn{
    margin-left:0;
}