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

:root {
    --ieee-blue: #00629B;
    --ieee-blue-dark: #004a75;
    --ieee-blue-light: #e6f2f9;
    --ieee-red: #d32f2f;
    --ieee-navy: #1C2C5C;
    --text-dark: #1a1a1a;
    --text-body: #333333;
    --text-muted: #666666;
    --bg-white: #ffffff;
    --bg-light: #f7f9fb;
    --border: #dce4ea;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

    /* Shared accent colour (used in main + footer) */
    --accent: #0099cc;
    --accent-dark: #007ba3;
    --accent-light: #e6f6fb;

    --xplore-footer-bg: #262e38;
    --xplore-footer-text: #d3d8de;
    --xplore-footer-muted: #8b939e;
    --xplore-footer-border: #3a4351;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    background: var(--bg-light);
    padding: 4.5rem 2rem;
}
.container { max-width: 1000px; margin: 0 auto; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 0.6rem;
}
.section-label::before {
    content: '';
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--text-dark);
    letter-spacing: -0.4px;
    line-height: 1.2;
}
.section-desc {
    color: var(--text-muted);
    font-size: 0.94rem;
    max-width: 680px;
    margin-bottom: 2.25rem;
    line-height: 1.65;
}

/* ===== CONTACT CARDS ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}
.contact-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.65rem 1.5rem;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.contact-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.9rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    transition: all 0.25s;
}
.contact-card:hover .contact-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.06);
}

.contact-card h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--accent-dark);
    margin-bottom: 0.45rem;
}
.contact-card p {
    font-size: 0.95rem;
    color: var(--ieee-navy);
    font-weight: 700;
    line-height: 1.45;
    word-break: break-word;
}
.contact-card p a {
    color: var(--accent-dark);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.contact-card p a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.contact-card p a:hover {
    color: var(--accent);
}
.contact-card p a:hover::after {
    transform: scaleX(1);
}
.contact-card .subline {
    display: block;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 0.2rem;
    letter-spacing: 0.2px;
}

/* ===== WARNING NOTE ===== */
.contact-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 1rem 1.5rem;
    background: var(--accent-light);
    border: 1px solid rgba(0,153,204,0.25);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    text-align: center;
}
.contact-note .note-icon {
    font-size: 1rem;
    flex-shrink: 0;
    color: var(--accent-dark);
}
.contact-note p {
    font-size: 0.86rem;
    color: var(--accent-dark);
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}
.contact-note p strong {
    color: var(--accent-dark);
    font-weight: 700;
}

/* ===== FOOTER (IEEE Xplore-inspired) ===== */
footer {
    background: var(--xplore-footer-bg);
    color: var(--xplore-footer-text);
    font-size: 0.85rem;
    border-top: 3px solid var(--accent);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 1.75rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.25rem;
    border-bottom: 1px solid var(--xplore-footer-border);
}

.footer-col h5 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.footer-brand-block .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}
.footer-brand-block .footer-logo .logo-mark {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.footer-brand-block .footer-logo .brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.footer-brand-block .brand-desc {
    color: var(--xplore-footer-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 340px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
    color: var(--xplore-footer-text);
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.2s, padding-left 0.2s;
    display: inline-block;
    position: relative;
    padding-left: 0;
}
.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 6px;
}
.footer-col ul li a:hover::before {
    content: '›';
    position: absolute;
    left: -2px;
    color: var(--accent);
    font-weight: 700;
}

.footer-bottom {
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.footer-copy {
    color: var(--xplore-footer-muted);
    font-size: 0.82rem;
    line-height: 1.7;
}
.footer-copy strong { color: var(--xplore-footer-text); font-weight: 600; }

.footer-address {
    color: var(--xplore-footer-muted);
    font-size: 0.82rem;
    line-height: 1.7;
    text-align: right;
    max-width: 420px;
}
.footer-address strong { color: var(--xplore-footer-text); font-weight: 600; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-brand-block { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    .main-content { padding: 3.5rem 1.25rem; }
    .contact-card { padding: 1.35rem 1.25rem; }
    .contact-note { padding: 0.9rem 1.15rem; flex-direction: column; gap: 0.4rem; }
}
@media (max-width: 600px) {
    .footer-inner { padding: 2.5rem 1.25rem 1.5rem; }
    .footer-top { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 1.75rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-address { text-align: left; }
}

.footer-ack { max-width: 1100px; margin: 1.5rem auto 0; font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.8); }
.footer-ack strong { color: #fff; }
