/* Custom CSS Variables & Design System - Light Theme */
:root {
    --bg-primary: hsl(210, 40%, 98%); /* Slate-50 */
    --bg-secondary: hsl(0, 0%, 100%); /* White */
    --bg-card: rgba(255, 255, 255, 0.75); /* White glass */
    
    --primary: hsl(173, 85%, 35%); /* Deep teal for contrast */
    --primary-glow: rgba(13, 148, 136, 0.12);
    --secondary: hsl(190, 90%, 38%);
    --secondary-glow: rgba(6, 182, 212, 0.1);
    --accent: hsl(38, 92%, 40%);
    --accent-glow: rgba(217, 119, 6, 0.1);
    
    --text-primary: hsl(222, 47%, 12%); /* Deep Slate-900 */
    --text-secondary: hsl(215, 25%, 32%); /* Slate-700 */
    --text-muted: hsl(215, 16%, 50%); /* Slate-500 */
    
    --border-color: rgba(148, 163, 184, 0.18);
    --border-glow: hsla(173, 80%, 40%, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-main: 0 10px 30px -10px rgba(148, 163, 184, 0.25);
    --shadow-glass: 0 8px 32px 0 rgba(148, 163, 184, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    line-height: 1.5;
}

/* Single Page Viewport Constraints for Desktop */
@media (min-width: 1025px) and (min-height: 750px) {
    body {
        height: 100vh;
    }
}

/* Ensure main page content stays within the viewport */
.main-content {
    height: calc(100vh - 170px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Background Ambient Glows - Light Theme */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.glow-1 {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    animation: pulseGlow 18s infinite alternate-reverse ease-in-out;
}

/* Background grid line effect */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 10;
    position: relative;
}

/* Header */
.site-header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    position: relative;
    flex-shrink: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.emblem-svg {
    width: 60px;
    height: 60px;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    animation: logoFloat 4s ease-in-out infinite;
}

.svg-logo {
    width: 100%;
    height: 100%;
}

.college-title h1 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 2px 0;
}

.govt-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
}

.affil-tag {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
    font-weight: 600;
}

/* Status Badge */
.status-badge {
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.2);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.05);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px var(--primary);
    animation: pulse 1.8s infinite;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 24px 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

/* Left Panel Elements */
.hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.badge-accent {
    align-self: flex-start;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.2);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 580px;
}

/* Website Development Progress */
.progress-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    max-width: 500px;
    box-shadow: var(--shadow-glass);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.progress-title {
    color: var(--text-secondary);
}

.progress-percent {
    color: var(--primary);
    font-family: var(--font-heading);
}

.progress-bar-track {
    height: 7px;
    background: rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 8px var(--primary-glow);
    animation: barPulse 2s infinite ease-in-out;
}

/* Countdown Timer Styles */
.countdown-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.countdown-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 72px;
    padding: 8px 4px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.time-block:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.08);
}

.time-num {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.time-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.time-divider {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.8;
}

/* Subscription Form Styles */
.subscribe-box {
    max-width: 520px;
}

.subscribe-box h3 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.subscribe-form {
    position: relative;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-wrapper {
    position: relative;
    flex-grow: 1;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    padding: 12px 16px 12px 44px;
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-wrapper input:focus + .input-icon {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px var(--primary-glow);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--secondary-glow);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(3px);
}

.error-msg {
    display: none;
    color: hsl(0, 84%, 55%);
    font-size: 0.78rem;
    font-weight: 550;
    margin-top: 6px;
    margin-left: 4px;
}

/* Right Panel: Hero Visual (Illustration) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(148, 163, 184, 0.2);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 19px;
    opacity: 0.95;
    transition: var(--transition-smooth);
}

.image-frame:hover .hero-image {
    transform: scale(1.01);
}

.glass-overlay {
    position: absolute;
    inset: 0;
    border-radius: 19px;
    background: linear-gradient(to bottom, transparent 65%, rgba(255, 255, 255, 0.7) 100%);
    pointer-events: none;
}

/* Floating Badges */
.badge-floating {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-glass);
    z-index: 20;
    animation: floatAnimation 6s ease-in-out infinite;
}

.badge-clinical {
    bottom: 20px;
    left: -24px;
}

.badge-students {
    top: -20px;
    right: -20px;
    animation-delay: -3s;
}

.badge-icon {
    font-size: 1.3rem;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--text-primary);
}

.badge-text span {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

/* Cards Section - Compacted for Single Page */
.info-section {
    position: relative;
    z-index: 10;
    margin-top: 10px;
}

.section-title {
    display: none; /* Removed heading to save viewport space */
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: var(--shadow-main);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.06);
}

.info-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 38px;
    height: 38px;
    background: rgba(13, 148, 136, 0.06);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.card-icon svg {
    width: 18px;
    height: 18px;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.card-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.contact-highlight {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

/* Footer Section */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-meta p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gov-disclaimer {
    font-size: 0.68rem !important;
    margin-top: 2px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon svg {
    width: 14px;
    height: 14px;
}

.social-icon:hover {
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(13, 148, 136, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 400px;
    color: var(--text-primary);
    transform: translateY(40px);
    opacity: 0;
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
    border-left: 4px solid var(--primary);
}

.toast-icon {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: bold;
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
}

.toast-message {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 1px;
}

/* Keyframe Animations */
@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(13, 148, 136, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

@keyframes pulseGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -15px) scale(1.05);
    }
    100% {
        transform: translate(-15px, 20px) scale(0.98);
    }
}

/* Shrink spacing, text, and panels on shorter viewports to keep all content on one page */
@media (max-height: 900px) {
    .main-content {
        height: calc(100vh - 150px);
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-header,
    .site-footer {
        padding: 10px 0;
    }

    .header-container,
    .footer-container,
    .hero-grid {
        gap: 14px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
        max-width: 100%;
    }

    .progress-container,
    .subscribe-box,
    .image-frame {
        max-width: 100%;
    }

    .countdown-container {
        gap: 6px;
    }

    .time-block {
        width: 56px;
        padding: 6px 3px;
    }

    .time-num {
        font-size: 1.3rem;
    }

    .input-wrapper input {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

    .btn-primary {
        padding: 10px 16px;
    }
}

@media (max-height: 780px) {
    .main-content {
        height: calc(100vh - 140px);
    }

    .hero-grid {
        gap: 18px;
        align-items: start;
        transform: scale(0.98);
        transform-origin: top center;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.82rem;
    }

    .image-frame {
        max-width: 100%;
        max-height: 44vh;
    }

    .footer-container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .container {
        padding: 0 14px;
    }
}

@media (max-height: 700px) {
    .main-content {
        height: calc(100vh - 130px);
    }

    .hero-grid {
        gap: 14px;
        transform: scale(0.96);
        transform-origin: top center;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.78rem;
    }

    .image-frame {
        max-height: 40vh;
    }

    .site-footer {
        padding: 8px 0;
    }
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(1deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes barPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.15);
    }
}

@keyframes toastIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Entrance Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-visual.animate-fade-in {
    animation-delay: 0.15s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .main-content {
        padding: 40px 24px;
        justify-content: flex-start;
        gap: 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-info {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .progress-container, .subscribe-box {
        width: 100%;
        max-width: 520px;
    }

    .countdown-container {
        justify-content: center;
    }

    .info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .badge-clinical {
        left: -12px;
    }

    .badge-students {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-area {
        flex-direction: column;
        gap: 12px;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 16px;
    }

    .countdown-container {
        gap: 8px;
    }

    .time-block {
        width: 64px;
        padding: 6px 2px;
    }

    .time-num {
        font-size: 1.4rem;
    }

    .input-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
