/* Attendance Homepage Styles */
.att-homepage-container {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hero Section */
.att-hero-section {
    min-height: 100vh;
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-welcome {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.8;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-item i {
    font-size: 2.5em;
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

.hero-portals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.portal-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2em;
}

.portal-card h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.portal-card p {
    opacity: 0.9;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.portal-button {
    display: inline-block;
    background: white;
    color: #4361ee;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portal-button:hover {
    background: transparent;
    color: white;
    border-color: white;
    transform: translateY(-3px);
}

.teacher-portal .portal-button {
    background: #ffd166;
    color: #333;
}

.student-portal .portal-button {
    background: #06d6a0;
    color: #333;
}

/* Features Section */
.att-features-section {
    padding: 100px 20px;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.8em;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.section-header p {
    font-size: 1.2em;
    color: #666;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8em;
    color: white;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* How It Works Section */
.att-how-it-works {
    padding: 100px 20px;
    background: white;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4361ee, #3a0ca3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.step-content p {
    color: #666;
    line-height: 1.7;
}

/* Testimonials Section */
.att-testimonials {
    padding: 100px 20px;
    background: #f8f9fa;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-size: 1.2em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #4361ee;
}

.author-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2em;
}

.author-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* CTA Section */
.att-cta-section {
    padding: 100px 20px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.cta-content p {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 50px;
}

.cta-buttons {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button.teacher-cta {
    background: white;
    color: #4361ee;
}

.cta-button.student-cta {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.teacher-cta:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-button.student-cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.att-homepage-footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #4361ee;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: #888;
    font-size: 0.9em;
}

.footer-copyright p {
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8em;
    }
    
    .hero-subtitle {
        font-size: 1.3em;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .section-header h2 {
        font-size: 2.2em;
    }
    
    .section-header p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .portal-card,
    .feature-card,
    .testimonial-card {
        padding: 25px;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero-portals {
        gap: 20px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4361ee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Admin Styles */
.att-homepage-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.admin-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.admin-card h2 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.admin-card h2 .dashicons {
    margin-right: 10px;
    color: #0073aa;
}

.admin-card p {
    margin-bottom: 15px;
    color: #666;
}