@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.language-switcher {
    text-align: right;
    margin-bottom: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.lang-btn {
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.lang-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.lang-btn:hover::before {
    left: 100%;
}

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

.lang-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: var(--shadow);
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 50px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
    100% { text-shadow: 0 4px 30px rgba(255, 255, 255, 0.5); }
}

h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

h3 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Better typography for content pages */
.card p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-primary);
}

.card ul, .card ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.card li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-primary);
}

.card h3 {
    color: var(--text-primary);
    text-align: left;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Better spacing for grid layouts */
.card > div[style*="grid"] {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Improve form styling */
.card input, .card select, .card textarea {
    margin-bottom: 15px;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    padding: 30px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.current-info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(243,244,246,0.95) 100%);
}

.current-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.current-info h2::after {
    display: none;
}

.current-info p {
    font-size: 1.3rem;
    margin: 15px 0;
    color: var(--text-primary);
}

.current-info strong {
    color: #667eea;
    font-weight: 600;
}

.date-selector {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(243,244,246,0.95) 100%);
}

.date-selector:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.input-group label {
    font-weight: 600;
    min-width: 120px;
    color: var(--text-primary);
}

.input-group input {
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.btn {
    padding: 15px 30px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn.secondary {
    background: var(--secondary-gradient);
}

.result-box {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    animation: slideIn 0.5s ease-out;
}

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

.result-box p {
    color: #155724;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.calendar-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
    padding: 30px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(243,244,246,0.95) 100%);
}

.calendar-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.year-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.year-selector label {
    font-weight: 600;
    min-width: 120px;
    color: var(--text-primary);
}

.year-selector input {
    padding: 15px 20px;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
    width: 120px;
    text-align: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.year-selector input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.calendar-table {
    margin-top: 30px;
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.week-calendar {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 14px;
}

.week-calendar th {
    background: var(--dark-gradient);
    color: white;
    padding: 20px 12px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    position: relative;
}

.week-calendar th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
}

.week-calendar td {
    padding: 15px 8px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.week-calendar tr:nth-child(even) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
}

.week-calendar tr.current-week {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%) !important;
    border: 2px solid var(--accent-gradient);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3); }
}

.week-calendar tr.current-week:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%) !important;
    transform: scale(1.02) !important;
}

.week-calendar tr.current-week .week-number {
    background: var(--accent-gradient) !important;
    color: white !important;
    font-weight: 700 !important;
    animation: glow 2s infinite alternate;
}

.week-calendar tr.selected-week {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.15) 0%, rgba(245, 87, 108, 0.15) 100%) !important;
    border: 2px solid var(--secondary-gradient);
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.3);
    animation: pulse-selected 2s infinite;
}

@keyframes pulse-selected {
    0% { box-shadow: 0 4px 20px rgba(240, 147, 251, 0.3); }
    50% { box-shadow: 0 8px 30px rgba(240, 147, 251, 0.5); }
    100% { box-shadow: 0 4px 20px rgba(240, 147, 251, 0.3); }
}

.week-calendar tr.selected-week:hover {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2) 0%, rgba(245, 87, 108, 0.2) 100%) !important;
    transform: scale(1.02) !important;
}

.week-calendar tr.selected-week .week-number {
    background: var(--secondary-gradient) !important;
    color: white !important;
    font-weight: 700 !important;
    animation: glow-selected 2s infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

.week-calendar tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transform: scale(1.01);
}

.week-number {
    background: var(--primary-gradient) !important;
    color: white !important;
    font-weight: 700 !important;
    position: relative;
    overflow: hidden;
}

.week-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.week-number:hover::before {
    left: 100%;
}

.day-cell {
    position: relative;
    min-width: 60px;
    font-weight: 500;
    color: var(--text-primary);
}

.day-cell .month {
    display: block;
    font-size: 0.7em;
    color: var(--text-secondary);
    margin-top: 3px;
    font-weight: 400;
}

.date-range {
    font-size: 0.9em;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 80px;
    height: 80px;
    background: var(--secondary-gradient);
    border-radius: 30%;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .card h2 {
        font-size: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
        margin-top: 20px;
    }
    
    .input-group, .year-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group label, .year-selector label {
        min-width: auto;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .week-calendar {
        font-size: 12px;
    }
    
    .week-calendar th, .week-calendar td {
        padding: 10px 6px;
    }
    
    .day-cell {
        min-width: 50px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Better mobile navigation */
    .nav-links {
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .nav-links a {
        padding: 6px 12px !important;
        font-size: 0.9rem !important;
    }
}

.year-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2) !important;
}

.year-link.current-year {
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3); }
    100% { box-shadow: 0 6px 30px rgba(79, 172, 254, 0.6); }
}

@media (max-width: 768px) {
    .year-links-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .year-link {
        width: 200px;
        text-align: center;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .input-group, .year-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group label, .year-selector label {
        min-width: auto;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .week-calendar {
        font-size: 12px;
    }
    
    .week-calendar th, .week-calendar td {
        padding: 10px 6px;
    }
    
    .day-cell {
        min-width: 50px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .week-calendar {
        font-size: 11px;
    }
    
    .week-calendar th, .week-calendar td {
        padding: 8px 4px;
    }
}

.blog-title {
    color: #222 !important;
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: left;
    text-shadow: none;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    animation: none;
}