/* Alumni Page Styles */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Lazy Loading Image Optimization */
img {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.loaded,
img[loading="lazy"] {
    opacity: 1;
}

.story-image img,
.company-item img {
    will-change: transform;
}

/* Section animations */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations */
.about-hero {
    animation: fadeIn 0.8s ease-out;
}

.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease forwards;
}

.story-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.story-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.alumni-stats-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(1).visible {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.1s;
}

.stat-card:nth-child(2).visible {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

.stat-card:nth-child(3).visible {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.3s;
}

.stat-card:nth-child(4).visible {
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.4s;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

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

.stat-card {
    will-change: transform;
    backface-visibility: hidden;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Success Stories Section */
.success-stories-section {
    padding: 80px 0;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.story-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    transform: translateY(20px) translateZ(0);
}

.story-card.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.story-card:nth-child(1).visible {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.1s;
}

.story-card:nth-child(2).visible {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.story-card:nth-child(3).visible {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.story-card:hover {
    transform: translateY(-15px) scale(1.02) translateZ(0);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.story-card.visible {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.story-card:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.3s ease;
}

.story-card:hover .story-image img {
    transform: scale(1.1);
}

.story-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.story-content {
    padding: 30px;
}

.story-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.designation {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.batch {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.story-text {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.story-achievements {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.story-achievements span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.story-achievements i {
    color: var(--accent-color);
}

/* Companies Section */
.companies-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.company-item {
    background: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 200px;
    justify-content: center;
}

.company-item {
    will-change: transform;
    backface-visibility: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.4s ease;
}

.company-item.visible {
    opacity: 1;
    transform: scale(1);
}

.company-item:hover {
    transform: translateY(-10px) translateZ(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.company-item img {
    max-width: 150px;
    max-height: 60px;
    height: auto;
    width: auto;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    will-change: transform;
    object-fit: contain;
}

.company-item:hover img {
    filter: none;
    opacity: 1;
    transform: scale(1.1);
}

.alumni-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Events Section */
.events-section {
    padding: 80px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.event-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    gap: 25px;
    border-left: 4px solid var(--accent-color);
    opacity: 0;
    transform: translateY(20px);
}

.event-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 12px;
    padding: 15px;
    min-width: 80px;
    color: white;
    text-align: center;
}

.event-date .day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-date .month {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-date .year {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-content {
    flex: 1;
}

.event-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-location {
    color: #666;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location i {
    color: var(--accent-color);
}

.event-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-register {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.1);
}

.event-register:hover {
    gap: 12px;
    color: white;
    background: var(--accent-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Involvement Section */
.involvement-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.involvement-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.involvement-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.involvement-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.involvement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
}

.involvement-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.involvement-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.involvement-card .btn-primary {
    width: 100%;
    transition: all 0.3s ease;
}

.involvement-card .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    background: var(--accent-dark);
}

/* Registration Section */
.registration-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.registration-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.registration-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
}

.registration-content {
    padding: 50px;
}

.registration-content h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.registration-content p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: #666;
    font-size: 1rem;
}

.benefits-list i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.registration-form-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registration-form-section h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.quick-register-form input,
.quick-register-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-register-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.quick-register-form input:focus,
.quick-register-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.2);
}

.quick-register-form select {
    color: rgba(255, 255, 255, 0.7);
}

.quick-register-form select option {
    background: var(--primary-dark);
    color: white;
}

.btn-block {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .registration-box {
        grid-template-columns: 1fr;
    }
    
    .registration-content,
    .registration-form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .companies-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .involvement-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .story-image {
        height: 250px;
    }
    
    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .event-location {
        justify-content: center;
    }
    
    .registration-content,
    .registration-form-section {
        padding: 30px 20px;
    }
}
