/* ============================================
   Professional Color Scheme & Base Styles
   ============================================ */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   New Year Animation Container
   ============================================ */
.new-year-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Animated Balloons */
.balloon {
    position: absolute;
    width: 60px;
    height: 80px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: float 15s infinite ease-in-out;
    opacity: 0.9;
}

.balloon::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
}

.balloon.balloon-1 {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    left: 10%;
    animation-delay: 0s;
}

.balloon.balloon-2 {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    left: 30%;
    animation-delay: 2s;
}

.balloon.balloon-3 {
    background: linear-gradient(135deg, #ffe66d, #ffd93d);
    left: 50%;
    animation-delay: 4s;
}

.balloon.balloon-4 {
    background: linear-gradient(135deg, #a8e6cf, #88d8a3);
    left: 70%;
    animation-delay: 6s;
}

.balloon.balloon-5 {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
    left: 85%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    90% {
        opacity: 0.9;
    }
    50% {
        transform: translateY(-20vh) translateX(20px) rotate(5deg);
    }
}

/* Animated Crackers */
.cracker {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
    animation: crackerPop 3s infinite;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
}

.cracker::before,
.cracker::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff6b6b;
    border-radius: 50%;
    animation: crackerPop 3s infinite;
}

.cracker::before {
    top: -10px;
    left: -5px;
    animation-delay: 0.5s;
}

.cracker::after {
    bottom: -10px;
    right: -5px;
    animation-delay: 1s;
}

@keyframes crackerPop {
    0%, 100% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

.cracker-1 { left: 15%; top: 20%; animation-delay: 0s; }
.cracker-2 { left: 45%; top: 30%; animation-delay: 1s; }
.cracker-3 { left: 75%; top: 25%; animation-delay: 2s; }
.cracker-4 { left: 25%; top: 60%; animation-delay: 0.5s; }
.cracker-5 { left: 55%; top: 70%; animation-delay: 1.5s; }
.cracker-6 { left: 85%; top: 65%; animation-delay: 2.5s; }

/* New Year Message Banner */
.new-year-message-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    padding: 12px 25px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    text-align: center;
    animation: pulse 2s infinite;
    backdrop-filter: blur(10px);
    margin: 0 auto 25px;
    max-width: 500px;
    width: 100%;
}

.new-year-message-banner h1 {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.new-year-message-banner .slogan {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* ============================================
   Header Styles
   ============================================ */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 30px;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    min-height: 44px;
    justify-content: center;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* ============================================
   Main Content Layout
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
    width: 100%;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* ============================================
   Panel Styles
   ============================================ */
.panel {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.center-panel {
    display: flex;
    flex-direction: column;
}

.center-panel .plants-grid {
    flex: 1;
    width: 100%;
}

.panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-title i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

/* ============================================
   Notice List Styles
   ============================================ */
.notice-list {
    list-style: none;
}

.notice-item {
    padding: 20px;
    margin-bottom: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.notice-item.priority-high {
    border-left-color: var(--danger-color);
    background: linear-gradient(90deg, #fee2e2 0%, #fef2f2 100%);
}

.notice-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notice-content {
    display: block;
    color: var(--text-primary);
    line-height: 1.6;
}

.notice-content strong {
    color: var(--primary-color);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* ============================================
   Plants Grid Styles
   ============================================ */
.plants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    align-items: stretch;
}

.plant-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    padding: 15px 18px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.plant-name {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.plant-name i {
    font-size: 0.9rem;
    margin-right: 5px;
}

.plant-link {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plant-link i {
    font-size: 0.8rem;
    margin-right: 5px;
}

.plant-link:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.02);
}

/* ============================================
   Members Panel Styles
   ============================================ */
.members-panel {
    margin-top: 30px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.member-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.member-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.member-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.member-role {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.member-contact {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* ============================================
   Footer Styles
   ============================================ */
footer {
    background: linear-gradient(135deg, var(--dark-bg), #0f172a);
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    margin: 10px 0;
    color: #cbd5e1;
}

.footer-content a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Tablets and Small Desktops */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px 30px;
    }
    
    .grid-layout {
        gap: 20px;
    }
    
    .plants-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .center-panel {
        grid-column: 1 / -1;
    }
    
    .plants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px 25px;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .new-year-message-banner {
        padding: 10px 20px;
        margin-bottom: 20px;
        border-radius: 25px;
        max-width: 450px;
    }
    
    .new-year-message-banner h1 {
        font-size: 1.2rem;
    }
    
    .new-year-message-banner .slogan {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }
    
    .panel {
        padding: 20px;
    }
    
    .panel-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .panel-title i {
        font-size: 1.5rem;
    }
    
    .plants-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .plant-card {
        padding: 12px 15px;
    }
    
    .plant-name {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .plant-link {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
    
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .member-card {
        padding: 20px;
    }
    
    .member-photo {
        width: 100px;
        height: 100px;
    }
    
    .member-name {
        font-size: 1.1rem;
    }
    
    .member-role {
        font-size: 0.95rem;
    }
    
    .member-contact {
        font-size: 0.85rem;
    }
    
    .notice-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .notice-content strong {
        font-size: 1rem;
    }
    
    footer {
        padding: 30px 15px;
        margin-top: 40px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 10px 20px;
    }
    
    header {
        padding: 12px 0;
        margin-bottom: 15px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .nav-menu a {
        justify-content: center;
        padding: 8px;
    }
    
    .new-year-message-banner {
        padding: 10px 18px;
        margin-bottom: 18px;
        border-radius: 25px;
        max-width: 400px;
    }
    
    .new-year-message-banner h1 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    
    .new-year-message-banner .slogan {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .grid-layout {
        gap: 15px;
    }
    
    .panel {
        padding: 15px;
        border-radius: 12px;
    }
    
    .panel-title {
        font-size: 1.2rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .panel-title i {
        font-size: 1.3rem;
    }
    
    .plants-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .plant-card {
        padding: 15px;
    }
    
    .plant-name {
        font-size: 0.95rem;
    }
    
    .plant-link {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .members-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .member-card {
        padding: 18px;
    }
    
    .member-photo {
        width: 90px;
        height: 90px;
    }
    
    .member-name {
        font-size: 1rem;
    }
    
    .member-role {
        font-size: 0.9rem;
    }
    
    .member-contact {
        font-size: 0.8rem;
    }
    
    .notice-item {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .notice-date {
        font-size: 0.8rem;
    }
    
    .notice-content {
        font-size: 0.9rem;
    }
    
    .notice-content strong {
        font-size: 0.95rem;
    }
    
    footer {
        padding: 25px 10px;
        margin-top: 30px;
    }
    
    .footer-content p {
        font-size: 0.85rem;
        margin: 8px 0;
    }
    
    .social-links {
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    /* Hide some balloons on very small screens for performance */
    .balloon.balloon-4,
    .balloon.balloon-5 {
        display: none;
    }
    
    .cracker.cracker-4,
    .cracker.cracker-5,
    .cracker.cracker-6 {
        display: none;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .new-year-message-banner {
        padding: 8px 15px;
        max-width: 350px;
    }
    
    .new-year-message-banner h1 {
        font-size: 1rem;
    }
    
    .new-year-message-banner .slogan {
        font-size: 0.7rem;
    }
    
    .panel-title {
        font-size: 1.1rem;
    }
    
    .plant-name {
        font-size: 0.85rem;
    }
    
    .plant-link {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .new-year-message-banner {
        padding: 10px 20px;
        margin-bottom: 15px;
        max-width: 450px;
    }
    
    .new-year-message-banner h1 {
        font-size: 1.2rem;
    }
    
    .plants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

