/* Advanced CSS Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--primary-gradient);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Advanced Container System */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    position: relative;
}

/* Advanced Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Advanced Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Glassmorphism Base */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

/* Advanced Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.main-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.9;
}

/* Advanced Hero Section */
.hero {
    margin-bottom: 4rem;
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-slow);
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    z-index: 1;
}

.hero-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.main-image {
    width: 100%;
    height: clamp(300px, 50vw, 500px);
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.hero-image:hover .main-image {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    border-radius: var(--border-radius-xl);
}

.overlay-content {
    padding: clamp(1rem, 4vw, 3rem);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

/* Advanced Announcement Section */
.announcement-section {
    margin-bottom: 4rem;
}

.announcement-card {
    background: var(--warning-gradient);
    color: var(--text-light);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: pulse 3s infinite;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.announcement-icon {
    font-size: clamp(2rem, 6vw, 4rem);
    opacity: 0.9;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.announcement-content {
    position: relative;
    z-index: 1;
}

.announcement-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.announcement-date {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.announcement-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    font-weight: 500;
}

.leader-info {
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.leader-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 600;
}

/* Advanced Vision Section */
.vision-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.vision-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.vision-card:hover::before {
    transform: scaleX(1);
}

.vision-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: clamp(60px, 12vw, 100px);
    height: clamp(60px, 12vw, 100px);
    margin: 0 auto 1.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.vision-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

.card-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.card-message {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
    font-weight: 500;
}

/* Advanced AI Assistant Section */
.ai-assistant-section {
    margin-bottom: 4rem;
}

.ai-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success-gradient);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-icon {
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.ai-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.ai-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
}

.ai-chat {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--text-light);
    border-radius: var(--border-radius-md);
    border: 1px solid #e9ecef;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-md);
    max-width: 85%;
    animation: slideIn 0.3s ease-out;
    word-wrap: break-word;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message {
    background: var(--success-gradient);
    color: var(--text-light);
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.user-message {
    background: #e9ecef;
    color: var(--text-primary);
    margin-left: auto;
    text-align: right;
    box-shadow: var(--shadow-sm);
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all var(--transition-normal);
    background: var(--text-light);
}

.chat-input input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.chat-input button {
    width: 50px;
    height: 50px;
    background: var(--success-gradient);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.chat-input button:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.chat-input button:active {
    transform: scale(0.95);
}

/* Advanced Feedback Section */
.feedback-section {
    margin-bottom: 4rem;
}

.feedback-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.feedback-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--secondary-gradient);
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feedback-icon {
    width: clamp(50px, 10vw, 80px);
    height: clamp(50px, 10vw, 80px);
    background: var(--secondary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-light);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.feedback-title {
    font-size: clamp(1.3rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feedback-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
}

.feedback-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
    background: var(--text-light);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 120px;
    line-height: 1.6;
}

.submit-btn {
    background: var(--secondary-gradient);
    color: var(--text-light);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-family: inherit;
    letter-spacing: 0.01em;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Advanced Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: clamp(1.5rem, 4vw, 3rem) 0;
    text-align: center;
    margin-top: 4rem;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    font-size: 1.2rem;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Advanced Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .announcement-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .vision-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ai-header,
    .feedback-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .chat-messages {
        max-height: 200px;
    }
    
    .message {
        max-width: 95%;
        font-size: 0.9rem;
    }
    
    .chat-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chat-input input {
        width: 100%;
    }
    
    .chat-input button {
        width: 100%;
        border-radius: var(--border-radius-md);
    }
    
    .feedback-form {
        gap: 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .announcement-card,
    .ai-card,
    .feedback-card,
    .vision-card {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.5rem;
    }
    
    .ai-title,
    .feedback-title {
        font-size: 1.4rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .chat-input input,
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.vision-card {
    animation: fadeInUp 0.6s ease-out;
}

.vision-card:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-card {
    animation: fadeInLeft 0.8s ease-out;
}

.feedback-card {
    animation: fadeInRight 0.8s ease-out;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
.social-link:focus,
.chat-input button:focus,
.submit-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.95);
        --glass-border: rgba(0, 0, 0, 0.2);
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .announcement-card,
    .ai-card,
    .feedback-card,
    .vision-card {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}