/* ===========================
   PAGES CSS - GDG NEHU
   =========================== */

/* Page Hero Section */
.page-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    overflow: hidden;
}

.page-hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 0 30px;
    animation: fade-in-up 1s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-title .word {
    display: inline-block;
    color: var(--light);
    animation: word-bounce 0.6s ease-out;
    animation-fill-mode: both;
}

.page-title .word:nth-child(1) { animation-delay: 0.2s; }
.page-title .word:nth-child(2) { animation-delay: 0.4s; }

@keyframes word-bounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb i {
    font-size: 0.8rem;
}

/* Events Filter */
.events-filter {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 25px;
    border-radius: 30px;
    color: var(--light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-btn:hover {
    background: rgba(66, 133, 244, 0.2);
    border-color: rgba(66, 133, 244, 0.5);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-google);
    border-color: transparent;
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
}

/* Events Section */
.events-section {
    padding: 80px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
}

.events-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
}

/* Event Card */
.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    animation: fade-in-up 0.6s ease-out;
    animation-fill-mode: both;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(66, 133, 244, 0.5);
}

.event-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image {
    transform: scale(1.1);
}

.event-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.event-badge.upcoming {
    background: rgba(52, 168, 83, 0.9);
    box-shadow: 0 5px 15px rgba(52, 168, 83, 0.4);
}

.event-badge.past {
    background: rgba(155, 155, 155, 0.9);
    box-shadow: 0 5px 15px rgba(155, 155, 155, 0.4);
}

.event-date-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: 15px;
    text-align: center;
    z-index: 2;
}

.date-day {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.date-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

.event-content {
    padding: 25px;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.event-category,
.event-time {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-category i,
.event-time i {
    color: var(--primary);
}

.event-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light);
    line-height: 1.3;
}

.event-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.event-location,
.event-attendees {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.event-location i,
.event-attendees i {
    color: var(--primary);
    width: 20px;
}

.event-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-google);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.5);
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 30px;
    background: var(--darker);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-google);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 35px;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--light);
}

.newsletter-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
    background: var(--gradient-google);
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(66, 133, 244, 0.4);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.6);
}

/* Team Section */
.team-section {
    padding: 80px 30px;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(15, 15, 30, 0.9) 100%);
}

.team-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

.team-grid.leadership {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.team-grid.members {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Team Card with Flip Effect */
.team-card {
    perspective: 1000px;
    height: 420px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.team-card-front {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.team-card-back {
    background: var(--gradient-google);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.member-image-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
}

.member-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient-google);
    animation: rotate-border 10s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.member-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--darker);
    z-index: 1;
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(66, 133, 244, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.member-overlay i {
    font-size: 50px;
    color: white;
}

.team-card-front:hover .member-overlay {
    opacity: 1;
}

.member-info {
    text-align: center;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light);
}

.member-role {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.member-badge {
    width: 40px;
    height: 40px;
    background: rgba(66, 133, 244, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.member-badge i {
    color: var(--primary);
    font-size: 18px;
}

/* Team Card Back */
.back-content {
    text-align: center;
    color: white;
}

.back-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.back-role {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.back-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 25px;
}

.member-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
}

.member-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.member-stats i {
    font-size: 1.2rem;
}

.member-stats span {
    font-size: 0.85rem;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}

/* Join Team Section */
.join-team-section {
    padding: 100px 30px;
    background: var(--darker);
    text-align: center;
}

.join-team-content {
    max-width: 700px;
    margin: 0 auto;
}

.join-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-google);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 45px;
    color: white;
    animation: pulse-scale 2s ease-in-out infinite;
}

@keyframes pulse-scale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.join-team-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.join-team-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.join-benefits {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.benefit i {
    font-size: 2rem;
    color: var(--primary);
}

.benefit span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.join-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-google);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(66, 133, 244, 0.4);
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(66, 133, 244, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .team-grid.leadership,
    .team-grid.members {
        grid-template-columns: 1fr;
    }
    
    .team-card {
        height: 380px;
    }
    
    .join-team-content h2 {
        font-size: 2rem;
    }
    
    .join-benefits {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
        gap: 10px;
    }
    
    .filter-container {
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .event-card {
        margin: 0 10px;
    }
    
    .newsletter-content h2 {
        font-size: 1.8rem;
    }
}