:root {
    --primary-color: #004a99;
    --secondary-color: #00a8e8;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s ease;
    --footer-sky: linear-gradient(165deg, #a8daf5 0%, #7ec8e8 45%, #6bb8e0 100%);
    --footer-text: #1a3a52;
    --footer-link: #004a99;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Navigation / Language Switcher */
.top-nav {
    background-color: #f0f0f0;
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
    color: #555;
}

.datetime-container {
    font-weight: 500;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    padding: 2px 10px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
    color: #555;
    font-weight: 500;
}

.lang-btn:hover {
    color: var(--primary-color);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header Styles */
.main-header {
    background: var(--white);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
}

.header-left .logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-center {
    flex: 2;
    text-align: center;
}

.header-center h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: #666;
}

.emc-logo {
    height: 40px;
    margin: 5px 0;
    object-fit: contain;
}

.emc-name {
    font-weight: 600;
    color: var(--primary-color);
}

/* Content Styles */
.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.7);
    transition: var(--transition);
}

.card:hover .card-bg {
    filter: blur(0) brightness(0.8);
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.card-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.card-content h2 {
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.card:hover .card-content h2 {
    transform: scale(1.1);
}

/* Footer Styles */
.main-footer {
    background: var(--footer-sky);
    color: var(--footer-text);
    padding: 48px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.footer-mini {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 24px;
    text-align: center;
}

.footer-mini-copyright {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--white);
    font-weight: 500;
    margin: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) minmax(180px, 1fr) minmax(160px, 0.9fr);
    gap: 36px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    padding-right: 12px;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.footer-logo {
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0, 50, 90, 0.12));
}

.footer-logo-odisha {
    height: 72px;
    width: auto;
    max-width: 140px;
}

.footer-logo-watco {
    height: 72px;
    width: 72px;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0, 74, 153, 0.15);
}

.footer-designed {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--footer-text);
    opacity: 0.9;
    margin-bottom: 12px;
}

.footer-emc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-logo-emc {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-address {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--footer-text);
    opacity: 0.92;
    max-width: 22rem;
}

.footer-section h3 {
    color: var(--footer-text);
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--footer-link);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
    animation: modalSlide 0.3s ease;
}

.policy-modal {
    max-width: 800px;
    text-align: left;
}

.policy-text {
    margin: 20px 0;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}

.policy-text h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.policy-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

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

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 25px;
    color: #666;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-yes {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-yes:hover {
    background-color: #003a7a;
}

.btn-no {
    background-color: #eee;
    color: #333;
}

.btn-no:hover {
    background-color: #ddd;
}

.modal-warning {
    margin-top: 20px;
    font-weight: 700;
    color: #d9534f;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.blinking-text {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-center h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 8px 15px;
    }

    .main-header {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .header-left, .header-right {
        justify-content: center;
    }

    .header-center h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .header-left .logo {
        height: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-logos {
        justify-content: center;
    }

    .footer-emc {
        align-items: center;
        text-align: center;
    }

    .footer-address {
        max-width: none;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card {
        height: 250px;
    }

    .card-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-center h1 {
        font-size: 1.1rem;
    }
    
    .logo {
        height: 40px;
    }
}
