/* ===== CSS Variables ===== */
:root {
    --primary-blue: #001f5c;
    --gold: #d4af37;
    --gold-light: #e8c547;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --gray-light: #e9ecef;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --success: #28a745;
    --warning: #dc3545;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--gray-dark);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #003380 50%, #001a4d 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
}

.pre-title {
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
}

.degree {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.university {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.ceremony-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-blue);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

/* ===== Countdown Section ===== */
.countdown-section {
    background: var(--primary-blue);
    padding: 60px 20px;
    text-align: center;
}

.countdown-section h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255,255,255,0.1);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    min-width: 100px;
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    font-family: var(--font-display);
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ===== Details Section ===== */
.details-section {
    padding: 80px 20px;
    background: var(--off-white);
}

.details-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.detail-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.detail-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-blue), #003380);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--gold);
}

.detail-card h3 {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.detail-main {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.detail-sub {
    color: var(--gray);
    margin-bottom: 10px;
}

.detail-note {
    font-size: 0.9rem;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

/* ===== Seating Section ===== */
.seating-section {
    padding: 80px 20px;
    background: var(--white);
}

.seating-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.seating-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--off-white);
    border: 2px solid var(--gray-light);
}

.info-card.highlight {
    background: linear-gradient(135deg, var(--primary-blue), #003380);
    border-color: var(--primary-blue);
}

.info-card.highlight .info-icon {
    background: var(--gold);
    color: var(--primary-blue);
}

.info-card.highlight .info-content h4,
.info-card.highlight .info-content p {
    color: var(--white);
}

.info-card.recommended {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
}

.info-card.recommended .info-icon {
    background: var(--primary-blue);
    color: var(--gold);
}

.info-card.recommended .info-content h4,
.info-card.recommended .info-content p {
    color: var(--primary-blue);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-content p {
    font-size: 0.95rem;
}

.seating-map-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .seating-map-container {
        grid-template-columns: 1fr;
    }
}

.seating-map {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.seating-map svg {
    width: 100%;
    height: auto;
    display: block;
}

/* SVG Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.pulse-dot {
    animation: pulse-scale 1.5s ease-in-out infinite;
}

.pulse-section rect {
    animation: pulse 2s ease-in-out infinite;
}

.section-hover {
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-section:hover .section-hover {
    fill: var(--gold-light);
    stroke: var(--primary-blue);
}

.seating-legend {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: 25px;
}

.seating-legend h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-note {
    margin-top: 20px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--gold);
}

.legend-note p {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.degree-legend {
    margin-top: 40px;
    padding: 30px;
    background: var(--off-white);
    border-radius: var(--radius-md);
}

.degree-legend h4 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    text-align: center;
}

.degree-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.degree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    padding: 8px 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
}

.degree-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* ===== Info Section ===== */
.info-section {
    padding: 80px 20px;
    background: var(--off-white);
}

.info-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 50px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.info-box h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
}

.info-box.warning h3 {
    border-bottom-color: var(--warning);
}

.check-list, .x-list {
    list-style: none;
}

.check-list li, .x-list li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.x-list li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--warning);
    font-weight: bold;
}

.info-box p {
    margin-bottom: 10px;
    color: var(--gray-dark);
}

.ada-note {
    margin-top: 15px;
    padding: 12px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-weight: 500;
}

/* ===== Resources Section ===== */
.resources-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-blue), #003380);
}

.resources-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.resources-section .section-subtitle {
    color: rgba(255,255,255,0.8);
    margin-bottom: 50px;
}

.resource-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

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

.resource-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-blue);
}

.resource-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.resource-card p {
    color: var(--gray);
    margin-bottom: 15px;
}

.resource-note {
    display: inline-block;
    background: var(--off-white);
    color: var(--gray-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===== Map Section ===== */
.map-section {
    padding: 80px 20px;
    background: var(--white);
}

.map-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    display: block;
}

.directions-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.direction-card {
    background: var(--off-white);
    padding: 25px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
}

.direction-card h4 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.direction-card p {
    color: var(--gray-dark);
}

.direction-card em {
    color: var(--gold);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-blue);
    padding: 60px 20px 30px;
    color: var(--white);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-message h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-message p {
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

.signature {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-top: 20px;
}

.footer-colleges {
    text-align: right;
}

.footer-colleges p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-colleges .uic {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 15px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .degree {
        font-size: 1.2rem;
    }

    .countdown-item {
        padding: 15px 20px;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .details-section h2,
    .seating-section h2,
    .info-section h2,
    .resources-section h2,
    .map-section h2 {
        font-size: 2rem;
    }

    .seating-map {
        padding: 10px;
    }

    .footer-colleges {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .countdown {
        gap: 10px;
    }

    .countdown-item {
        padding: 12px 15px;
        min-width: 60px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .ceremony-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
