:root {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --text-main: #0f172a;
    --text-gray: #475569;
    
    --accent: #8b5cf6;
    --accent-hover: #7c3aed;
    --accent-alpha: rgba(139, 92, 246, 0.15);
    
    --blue: #3b82f6;
    --blue-alpha: rgba(59, 130, 246, 0.15);
    --purple: #d946ef;
    --purple-alpha: rgba(217, 70, 239, 0.15);
    --green: #10b981;
    --green-alpha: rgba(16, 185, 129, 0.15);
    --red: #ef4444;

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1.2; }

.font-light { font-weight: 300; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-gray { color: var(--text-gray); }
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-dark { color: #0f172a !important; }

.bg-accent-alpha { background-color: var(--accent-alpha); }
.bg-blue-alpha { background-color: var(--blue-alpha); }
.bg-purple-alpha { background-color: var(--purple-alpha); }
.bg-green-alpha { background-color: var(--green-alpha); }
.bg-accent { background-color: var(--accent); }

.border-accent { border: 1px solid var(--accent) !important; }

.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
    .grid-2-col { grid-template-columns: 1fr; }
}

/* Base UI Elements */
.glass-panel, .glass-card, .glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-alpha);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.icon-btn:hover {
    color: var(--text-main);
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0.5rem;
}
.form-input:focus {
    border-color: var(--accent);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}
.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    box-shadow: 0 0 10px var(--accent);
}

/* Slides */
.presentation-wrapper {
    position: relative;
    width: 100%;
}

.slide {
    min-height: 100vh;
    width: 100%;
    padding: 100px 2rem 100px 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.center-slide {
    align-items: center;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-slide {
    align-items: center;
}
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}
.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-gray);
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pill-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.pill-badge.accent {
    background: var(--accent-alpha);
    border-color: var(--accent);
    color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-gray);
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

.bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.3;
}
.blur-1 {
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--accent);
}
.blur-2 {
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--blue);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
}
.timeline-year {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    z-index: 2;
    flex-shrink: 0;
}
.timeline-item.highlight .timeline-year {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg-dark);
}
.timeline-content {
    padding: 1.5rem;
    border-radius: 1rem;
    flex: 1;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.huge-icon {
    font-size: 5rem;
}
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* CERTIFICATE TEMPLATE */
.certificate-layout {
    width: 1122px; /* A4 Landscape at 96 DPI */
    height: 793px;
    background: #ffffff;
    color: #111111;
    position: relative;
    padding: 40px;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
}

.cert-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: 0;
}

/* Decorative Blobs for Certificate */
.cert-bg::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.1);
    filter: blur(80px);
}
.cert-bg::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    filter: blur(80px);
}

.cert-border-outer {
    border: 2px solid #8b5cf6;
    height: 100%;
    width: 100%;
    padding: 10px;
    position: relative;
    z-index: 10;
}

.cert-border-inner {
    border: 1px solid #cbd5e1;
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.cert-header {
    margin-top: 10px;
}
.cert-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: 2px;
    margin-bottom: 10px;
}
.cert-subtitle {
    font-size: 18px;
    color: #64748b;
    letter-spacing: 4px;
    font-weight: 600;
}

.cert-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    color: #8b5cf6;
    font-weight: 700;
    margin: 10px 0;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    display: inline-block;
    min-width: 600px;
}

.cert-body {
    max-width: 800px;
    margin: 0 auto;
}
.cert-body p {
    font-size: 20px;
    color: #475569;
    margin-bottom: 15px;
}
.cert-event {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 1px;
    margin: 10px 0;
}
.cert-details {
    font-size: 16px !important;
    line-height: 1.8;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 10px;
    margin-bottom: 0px;
    padding: 0 20px;
}
.signature-line {
    width: 200px;
    height: 2px;
    background: #1e293b;
    margin: 0 auto;
}
.date-output {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    height: 30px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .text-5xl { font-size: 2.5rem; }
    .hero-title { font-size: 3.5rem; }
    
    .timeline::before { left: 24px; }
    .timeline-year { width: 48px; height: 48px; font-size: 1.25rem; }
    
    .cert-name { font-size: 48px; min-width: 100%; }
}
