/* --- HIDE SCROLLBAR GLOBALLY --- */
::-webkit-scrollbar { display: none; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
.palette-results { scrollbar-width: none; -ms-overflow-style: none; }

/* Smooth Fade-In on Page Load */
body { animation: fadeInPage 0.4s ease-in-out forwards; }
@keyframes fadeInPage { from { opacity: 0; } to { opacity: 1; } }

/* style.css */
:root {
    /* --- Light Mode General --- */
    --bg: #f8fafc;
    --text: #334155;
    --text-muted: #64748b;
    --primary: #0f172a; 
    --accent: #2563eb;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --btn-text: #ffffff;
    
    /* Shapes */
    --border-radius-xl: 24px;
    --border-radius-pill: 50px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.5);
    --shadow-sharp: 0 5px 25px rgba(0,0,0,0.15); 

    /* --- GLASS NAV (Light Mode) --- */
    --nav-bg-glass: rgba(255, 255, 255, 0.7);
    --nav-border-glass: rgba(0, 0, 0, 0.08);
    --nav-shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.08);
    
    --bubble-bg: #ffffff;
    --bubble-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
    --bubble-hover: rgba(0, 0, 0, 0.05);
    
    --nav-text-color: #64748b;
    --nav-text-active: #0f172a;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
    /* --- Dark Mode General --- */
    --bg: #050505; 
    --text: #d4d4d4; 
    --text-muted: #888888;
    --primary: #e6e6e6; 
    --accent: #60a5fa; 
    --card-bg: #161616; 
    --border-color: #2a2a2a; 
    --btn-text: #050505;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.8);
    --shadow-sharp: 0 10px 40px rgba(0,0,0,0.6); 

    /* --- GLASS NAV (Dark Mode) --- */
    --nav-bg-glass: rgba(30, 30, 30, 0.75);
    --nav-border-glass: rgba(255, 255, 255, 0.1);
    --nav-shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.6);
    
    --bubble-bg: rgba(70, 70, 70, 0.8);
    --bubble-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
    --bubble-hover: rgba(255, 255, 255, 0.08);
    
    --nav-text-color: #a0a0a0;
    --nav-text-active: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }

body { background-color: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L9.5 20L13 12.5L20.5 9L2 2Z' fill='%232563eb' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto; }
a, button, .spotlight-btn, .theme-toggle, .card, .palette-item { cursor: pointer; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

[data-theme="dark"] .logo img,
[data-theme="dark"] .landing-logo { filter: invert(1) brightness(1.5) opacity(0.9); }

/* GLASS NAVIGATION */
#bottom-nav-container { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; z-index: 10000; }
.nav-wrap { background: var(--nav-bg-glass); border: 1px solid var(--nav-border-glass); box-shadow: var(--nav-shadow-glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); padding: 6px; border-radius: 500px; display: flex; align-items: center; position: relative; z-index: 20; }
.nav { display: flex; align-items: center; position: relative; height: 44px; gap: 4px; transition: gap 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.bubble { position: absolute; top: 0; bottom: 0; height: 100%; border-radius: 500px; pointer-events: none; z-index: 1; transition: left 0.35s cubic-bezier(0.25, 1, 0.5, 1), width 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease; }
.active-bubble { background: var(--bubble-bg); box-shadow: var(--bubble-shadow); z-index: 2; }
.hover-bubble { background: var(--bubble-hover); opacity: 0; z-index: 1; }
.nav-item { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; height: 100%; color: var(--nav-text-color); font-weight: 600; font-size: 0.95rem; cursor: pointer; user-select: none; transition: color 0.3s ease; }
.nav-item.active { color: var(--nav-text-active); }
.nav-item.collapsible { padding: 0 24px; max-width: 150px; opacity: 1; overflow: hidden; white-space: nowrap; transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), padding 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease; }
.nav-item.search-item { width: 44px; padding: 0; }
.nav-item.search-item i { font-size: 1.1rem; }
.nav-scroll-area { display: contents; }


/* SEPARATED THEME TOGGLE PILL */
.theme-toggle-wrap { position: relative; z-index: 10; margin-left: 12px; background: var(--nav-bg-glass); border: 1px solid var(--nav-border-glass); box-shadow: var(--nav-shadow-glass); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%); padding: 6px; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; transform: scale(1) translateX(0); opacity: 1; transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, margin-left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s, opacity 0.4s ease 0.4s; }
.theme-toggle-btn { background: transparent; border: none; color: var(--nav-text-color); width: 100%; height: 100%; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: color 0.3s, background-color 0.3s; }
.theme-toggle-btn:hover { color: var(--nav-text-active); background-color: var(--bubble-hover); }
.theme-toggle-btn svg { width: 20px; height: 20px; }
#bottom-nav-container.is-collapsed .nav { gap: 0; }
#bottom-nav-container.is-collapsed .collapsible { max-width: 0; padding-left: 0; padding-right: 0; margin: 0; border: none; opacity: 0; pointer-events: none; }
#bottom-nav-container.is-collapsed .bubble { opacity: 0 !important; transition: opacity 0.1s ease; }
#bottom-nav-container.is-collapsed .theme-toggle-wrap { margin-left: -58px; transform: scale(0.6) translateX(-10px); opacity: 0; pointer-events: none; transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin-left 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease; }

/* --- Hero & General --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; width: 100%; box-sizing: border-box; }
.section-padding{padding:4rem 0 5rem}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; min-height: 95vh; padding-top: 4rem; }
.hero-title { font-size: 4.5rem; line-height: 1.1; font-weight: 800; color: var(--primary); margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.25rem; color: var(--text-muted); max-width: 500px; margin-bottom: 2rem; }
.hero-image-wrapper { border-radius: var(--border-radius-xl); overflow: hidden; height: 600px; box-shadow: var(--shadow-soft); background: var(--border-color); }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.action-buttons { display: flex; gap: 1rem; margin-top: 2rem; }
.btn-primary { background: var(--primary); color: var(--btn-text); padding: 12px 32px; border-radius: var(--border-radius-pill); font-weight: 600; box-shadow: 0 10px 20px rgba(0,0,0,0.1); border: 2px solid var(--primary); transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); border-color: var(--accent); }
.btn-secondary { background: var(--card-bg); color: var(--primary); padding: 12px 32px; border-radius: var(--border-radius-pill); font-weight: 600; border: 2px solid var(--border-color); transition: all 0.3s ease; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--bg); transform: translateY(-2px); }
.btn-glow { background: var(--card-bg); color: var(--primary); padding: 16px 40px; border-radius: 50px; font-size: 1.1rem; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.btn-glow:hover { box-shadow: var(--shadow-glow); border-color: var(--accent); transform: translateY(-3px); color: var(--accent); }

/* --- Pill Animation --- */
@keyframes rotate-border { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.pill-wrapper { position: relative; display: inline-flex; justify-content: center; align-items: center; padding: 2px; border-radius: 50px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: auto; max-width: fit-content; -webkit-mask-image: -webkit-radial-gradient(white, black); mask-image: radial-gradient(white, black); isolation: isolate; }
.pill-wrapper::before { content: ''; position: absolute; width: 600px; height: 600px; left: 50%; top: 50%; background: conic-gradient(transparent 55%, var(--accent) 100%); animation: rotate-border 4s linear infinite; z-index: 0; }
.pill-content { position: relative; background: var(--card-bg); border-radius: 48px; padding: 8px 24px; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 8px; z-index: 1; white-space: nowrap; }

/* --- Cards & General UI --- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; padding-bottom: 4rem; }
.card { background: var(--card-bg); border-radius: var(--border-radius-xl); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s; }
.card:hover { transform: translateY(-10px); }
.card img { width: 100%; height: 250px; object-fit: cover; }
.card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column;}
.card-content h3 { margin-bottom: 0.5rem; font-size: 1.5rem; color: var(--primary); }
.card-content p { color: var(--text-muted); margin-bottom: 1.5rem; flex-grow: 1; }
.tag-container { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { background: var(--bg); padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border-color); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: start; }
.section-label { font-size: 0.9rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 1rem; display: block; font-weight: 600;}
.about-title { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; }
.edu-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: center; }
.lang-card, .skill-card { background: var(--card-bg); padding: 2.5rem; border-radius: var(--border-radius-xl); box-shadow: var(--shadow-soft); border: 1px solid var(--border-color); transition: transform 0.3s, border-color 0.3s; }
.skill-card:hover, .lang-card:hover { transform: translateY(-5px); }
.spotlight-card { position: relative; overflow: hidden; }
.spotlight-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.1), transparent 40%); z-index: 3; opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.spotlight-card:hover::after { opacity: 1; }
[data-theme="dark"] .spotlight-card::after { background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(96, 165, 250, 0.15), transparent 40%); }
.lang-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding: 1rem 0; color: var(--text); }
.lang-row:last-child { border-bottom: none; }
.skill-icon { width: 50px; height: 50px; background: var(--primary); color: var(--btn-text); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; }
.skills-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem;max-width:1300px;margin:0 auto}
.social-icons { display: flex; gap: 1rem; margin-top: 2rem; }
.social-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 4px 12px rgba(0,0,0,0.05); display: flex; justify-content: center; align-items: center; color: var(--text-muted); font-size: 1.2rem; transition: 0.3s; }
.social-icon:hover { background: var(--bg); color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.contact-card { background: var(--card-bg); padding: 2rem; border-radius: 16px; box-shadow: var(--shadow-soft); margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; text-align: left; transition: 0.3s; border: 1px solid var(--border-color); text-decoration: none; color: inherit; }
.contact-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.contact-card:hover .contact-info-text { color: var(--accent); transition: color 0.3s; }
.tech-ribbon { width: 100%; background: var(--card-bg); padding: 2rem 0; overflow: hidden; position: relative; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.tech-track { display: flex; width: max-content; gap: 4rem; animation: scroll-loop 20s linear infinite; will-change: transform; }
.tech-ribbon:hover .tech-track { animation-play-state: paused; }
.tech-slide { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 600; color: var(--text-muted); transition: color 0.3s ease, transform 0.3s ease; flex-shrink: 0; }
.tech-slide i { font-size: 2rem; color: var(--text-muted); transition: color 0.3s ease; }
.tech-slide:hover { color: var(--primary); transform: scale(1.1); cursor: default; }
.tech-slide:hover i { color: var(--accent); }
@keyframes scroll-loop { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 2rem)); } }
.cta-banner { background: var(--primary); color: var(--btn-text); border-radius: var(--border-radius-xl); padding: 6rem 2rem; text-align: center; margin: 6rem 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cta-title { font-size: 2.8rem; margin-bottom: 1rem; }
footer { background: var(--card-bg); padding: 4rem 0 8rem; border-top: 1px solid var(--border-color); margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6rem; margin-bottom: 3rem; }
.footer-col h4 { margin-bottom: 1.5rem; color: var(--primary); font-size: 1.1rem;}
.footer-col a { display: block; color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.95rem;}
.footer-col a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }

/* --- Scroll Button --- */
.progress-wrap { position: fixed; right: 30px; bottom: 30px; height: 50px; width: 50px; cursor: pointer; display: block; border-radius: 50px; box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1); z-index: 500 !important; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 200ms linear; background: var(--card-bg); border: 1px solid var(--border-color); }
.progress-wrap.active-progress { opacity: 1; visibility: visible; transform: translateY(0); }
.progress-wrap::after { position: absolute; content: '\f062'; font-family: 'Font Awesome 5 Free'; font-weight: 900; text-align: center; line-height: 50px; font-size: 20px; color: var(--primary); left: 0; top: 0; height: 50px; width: 50px; cursor: pointer; display: block; z-index: 1; transition: all 200ms linear; }
.progress-wrap:hover::after { opacity: 0; }
.progress-wrap::before { position: absolute; content: '\f062'; font-family: 'Font Awesome 5 Free'; font-weight: 900; text-align: center; line-height: 50px; font-size: 20px; opacity: 0; background: var(--accent); color: white; left: 0; top: 0; height: 50px; width: 50px; cursor: pointer; display: block; z-index: 2; transition: all 200ms linear; border-radius: 50%; }
.progress-wrap:hover::before { opacity: 1; }
.progress-circle path { fill: none; stroke: var(--primary); stroke-width: 4; box-sizing: border-box; transition: all 200ms linear; }


/* CERTIFICATIONS PAGE SPECIFICS */
.cert-card, .masonry-item { cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L9.5 20L13 12.5L20.5 9L2 2Z' fill='%232563eb' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 2 2, auto !important; }

.btn-status-static { width: 100%; display: flex; justify-content: center; align-items: center; padding: 10px; border-radius: 50px; font-size: 0.85rem; background: var(--bg); border: 1px solid var(--border-color); color: var(--text-muted); opacity: 0.6; pointer-events: none; box-shadow: none; }
.card-top-tag { background: var(--nav-bg-glass) !important; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--nav-text-active) !important; padding: 6px 16px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; border: 1px solid var(--nav-border-glass) !important; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }

.cert-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: auto; width: 100%; }
.cert-footer .btn-preview, .cert-footer .date-tag { width: 100%; display: flex; justify-content: center; align-items: center; text-align: center; margin: 0; padding: 10px; height: 100%; border-radius: 50px; font-size: 0.85rem; font-weight: 600; }
.btn-preview { background: transparent; border: 1px solid var(--text); color: var(--text); transition: all 0.3s ease; cursor: pointer; }
.btn-preview:hover { background: var(--text); color: var(--card-bg); }
.date-tag { background: #000000; color: #ffffff; border: 1px solid #000000; }
.card-full-width { grid-column: 1 / -1; max-width: 800px; width: 100%; justify-self: center; margin: 0 auto; }

/* Masonry layout */
.masonry-grid { column-count: 3; column-gap: 1.5rem; margin-top: 3rem; width: 100%; }
.masonry-item {
    -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; display: inline-block; width: 100%; margin-bottom: 1.5rem; border-radius: var(--border-radius-xl); overflow: hidden; position: relative; box-shadow: var(--shadow-soft); 
    -webkit-backface-visibility: hidden; backface-visibility: hidden; 
    -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); 
    opacity: 0; transition: box-shadow 0.4s ease, opacity 0.8s ease, transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.masonry-item img { 
    width: 100%; height: auto; display: block; transition: transform 0.5s ease; 
    -webkit-transform: translate3d(0,0,0); transform: translate3d(0,0,0); 
    -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.masonry-item:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.masonry-item:hover img { transform: scale(1.03); }
.slide-left { transform: translateX(-50px) translate3d(0,0,0); }
.slide-right { transform: translateX(50px) translate3d(0,0,0); }
.slide-up { transform: translateY(50px) translate3d(0,0,0); }
.masonry-item.active { opacity: 1; transform: translate(0, 0) translate3d(0,0,0); }
@media (max-width: 1024px) { .masonry-grid { column-count: 2; }   .container { padding-left: 2rem; padding-right: 2rem; } .card-full-width { max-width: none; width: 100%; }}
@media (max-width: 600px) { .masonry-grid { column-count: 1; } }

/* Lightbox */
.lightbox { position: fixed; z-index: 10000; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; backdrop-filter: blur(5px); }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 0 50px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1); }
.lightbox.active .lightbox-img { transform: scale(1); }
.lightbox-close { position: absolute; top: 30px; right: 30px; font-size: 2rem; color: white; cursor: pointer; opacity: 0.7; transition: 0.3s; }
.lightbox-close:hover { opacity: 1; transform: scale(1.1); }

/* CONTACT PAGE PILLS & CONVERSATIONAL FORM */
/* Contact pills layout */
.contact-pills-container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin: 0 auto 4rem auto; max-width: 700px; }
.contact-pill { display: flex; align-items: center; gap: 0.8rem; background: var(--card-bg); border: 1px solid var(--border-color); padding: 12px 24px; border-radius: 50px; color: var(--primary); font-weight: 600; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.contact-pill i { color: var(--accent); font-size: 1.2rem; }
.contact-pill:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-soft); }

/* Conversational Form */
.contact-form-section { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius-xl); padding: 4rem; box-shadow: var(--shadow-soft); max-width: 1000px; margin: 0 auto; position: relative;}
.contact-form-header h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; font-family: 'Georgia', serif; }
.contact-form-header p { color: var(--text-muted); font-size: 1rem; margin-bottom: 3rem; }
.conversational-form { font-size: 1.3rem; color: var(--primary); line-height: 2.5; font-weight: 600; }
.nowrap-group { white-space: nowrap; display: inline-block; }

.inline-input { 
    background: transparent; border: none; border-bottom: 1px solid var(--border-color); color: var(--text); 
    font-size: 1.1rem; font-family: inherit; padding: 0.2rem 0.5rem; margin: 0 0.5rem; outline: none !important; 
    width: auto; min-width: 250px; text-align: center; transition: border-color 0.3s ease; box-shadow: none !important; 
}
.inline-input:focus { border-bottom-color: var(--accent); }
.inline-input::placeholder { color: var(--text-muted); opacity: 0.6; font-weight: 400; }

/* Custom Dropdown UI */
.custom-dropdown { position: relative; display: inline-block; min-width: 220px; margin: 0 0.5rem; user-select: none; }
.dropdown-selected {
    background-color: var(--bg); border: 1px solid var(--border-color); border-radius: 50px;
    color: var(--text-muted); font-size: 1.1rem; font-weight: 400; padding: 6px 36px 6px 16px; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
    transition: all 0.3s ease; text-align: left;
}
.dropdown-selected.has-value { color: var(--text); font-weight: 500; }
.custom-dropdown.active .dropdown-selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
.dropdown-options {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 100%; background: var(--card-bg);
    border: 1px solid var(--border-color); border-radius: 16px; box-shadow: var(--shadow-sharp);
    list-style: none; padding: 8px 0; margin: 0; z-index: 100; opacity: 0; visibility: hidden;
    transform: translateY(-10px); transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1); 
    max-height: 250px; overflow-y: auto; text-align: left;
}
.custom-dropdown.active .dropdown-options { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-options li { padding: 12px 20px; color: var(--text); font-size: 1.05rem; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s; border-bottom: 1px solid var(--border-color); }
.dropdown-options li:last-child { border-bottom: none; }
.dropdown-options li:hover { background: var(--bg); color: var(--accent); }

.form-footer { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    margin-top: 3rem; 
    padding-top: 2rem; 
    border-top: 1px solid var(--border-color); 
}
.form-footer-row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.modern-checkbox { display: flex; align-items: center; gap: 0.8rem; color: var(--text-muted); font-size: 0.9rem; font-weight: 400; cursor: pointer; user-select: none; }
.modern-checkbox input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { display: flex; align-items: center; justify-content: center; height: 24px; width: 24px; background-color: var(--bg); border: 2px solid var(--border-color); border-radius: 6px; transition: all 0.3s ease; flex-shrink: 0; position: relative;}
.modern-checkbox:hover input ~ .checkmark { border-color: var(--accent); }
.modern-checkbox input:checked ~ .checkmark { background-color: var(--accent); border-color: var(--accent); }
.checkmark:after { 
    content: ""; position: absolute; display: none; 
    left: 50%; top: 45%; 
    width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; 
    transform: translate(-50%, -50%) rotate(45deg); 
}
.modern-checkbox input:checked ~ .checkmark:after { display: block; }

.form-submit-btn { background: var(--primary); color: var(--btn-text); padding: 14px 32px; border: none; border-radius: 50px; font-weight: 600; cursor: pointer; font-size: 0.95rem; transition: background 0.3s ease, transform 0.3s; }
.form-submit-btn:hover { transform: translateY(-2px); opacity: 0.9; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.form-submit-btn:disabled { cursor: not-allowed; opacity: 0.7; transform: none; box-shadow: none; }

/* NOTIFICATION TOAST SYSTEM */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }

.toast { 
    background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sharp); 
    border-radius: 20px; padding: 20px 24px; display: flex; align-items: center; gap: 16px; 
    min-width: 350px; max-width: 450px; position: relative; overflow: hidden; 
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    animation: slideInToast 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; 
}

.toast-profile-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--border-color); flex-shrink: 0; }
.toast-content { flex-grow: 1; }
.toast-title { font-weight: 700; color: var(--primary); font-size: 1.1rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.toast-msg { color: var(--text); font-size: 1rem; font-weight: 600; }
.toast-close { color: var(--text-muted); cursor: pointer; font-size: 1.1rem; opacity: 0; transition: all 0.2s ease; padding: 4px; position: absolute; top: 10px; right: 10px; background: var(--bg); border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.toast:hover .toast-close { opacity: 0.7; }
.toast-close:hover { opacity: 1 !important; background: var(--border-color); color: var(--text); }

.toast-progress { position: absolute; bottom: 0; left: 0; height: 4px; background: var(--accent); animation-name: toastTimer; animation-timing-function: linear; animation-fill-mode: forwards; }

@keyframes slideInToast { from { opacity: 0; transform: translateX(120%); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOutToast { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(120%); } }
@keyframes toastTimer { 0% { width: 100%; } 100% { width: 0%; } }

.emoji-confetti { position: relative; display: inline-block; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 1.2rem;}
.emoji-confetti::before, .emoji-confetti::after { content: ''; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; opacity: 0; pointer-events: none; }
.confetti-pop::before { animation: confetti-explosion-1 0.8s ease-out forwards; box-shadow: 15px -15px #ff595e, -15px -15px #ffca3a, 15px 15px #8ac926, -15px 15px #1982c4, 25px 0 #6a4c93, 0 25px #ff595e, -25px 0 #ffca3a, 0 -25px #8ac926; }
.confetti-pop::after { animation: confetti-explosion-2 0.8s ease-out 0.1s forwards; box-shadow: 10px -20px #ff595e, -20px -10px #ffca3a, 20px 10px #8ac926, -10px 20px #1982c4; }
@keyframes confetti-explosion-1 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.5); box-shadow: 30px -30px 0 -3px #ff595e, -30px -30px 0 -3px #ffca3a, 30px 30px 0 -3px #8ac926, -30px 30px 0 -3px #1982c4, 40px 0 0 -3px #6a4c93, 0 40px 0 -3px #ff595e, -40px 0 0 -3px #ffca3a, 0 -40px 0 -3px #8ac926; } }
@keyframes confetti-explosion-2 { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); box-shadow: 20px -30px 0 -3px #ff595e, -30px -20px 0 -3px #ffca3a, 30px 20px 0 -3px #8ac926, -20px 30px 0 -3px #1982c4; } }

/* COMMAND PALETTE */
.palette-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); z-index: 99999 !important; opacity: 0; visibility: hidden; transition: opacity 0.2s ease-in-out, visibility 0.2s; display: flex; justify-content: center; align-items: flex-start; padding-top: 25vh; }
.palette-overlay.open { opacity: 1; visibility: visible; }
.palette-modal { width: 700px; max-width: 95%; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius-xl); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: visible; position: relative; transform: scale(0.98); transition: transform 0.2s ease-in-out; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; flex-direction: column; }
.palette-overlay.open .palette-modal { transform: scale(1); }
.palette-search-bar { display: flex; align-items: center; padding: 16px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; background: var(--card-bg); border-top-left-radius: var(--border-radius-xl); border-top-right-radius: var(--border-radius-xl); }
.search-icon { color: var(--text-muted); font-size: 1.2rem; margin-right: 12px; }
#palette-input { flex: 1; background: transparent; border: none; color: var(--text); font-size: 1.2rem; outline: none; }
.palette-shortcut { font-size: 0.75rem; font-weight: 700; color: #7e7e7e; border: 1px dashed #666; border-radius: 6px; padding: 2px 8px; min-width: 36px; text-align: center; font-family: "SF Mono", "Consolas", "Courier New", monospace; letter-spacing: 0.5px; }
.palette-results { max-height: 60vh; overflow-y: auto; padding: 8px; scrollbar-width: none; -ms-overflow-style: none; transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease, padding 0.3s ease; overflow-x: hidden; position: relative; }
.palette-results.compact-hidden { max-height: 0; opacity: 0; padding: 0 8px; overflow: hidden; visibility: hidden; pointer-events: none; }
.palette-results::-webkit-scrollbar { display: none; }
.palette-item { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 16px; border-radius: 8px; color: var(--text-muted); cursor: pointer; transition: all 0.1s; position: relative; z-index: 1; border: 1px solid transparent; }
.palette-item.selected, .palette-item:hover { background: var(--bg); color: var(--text); border-color: var(--accent); }
.palette-item-left { display: flex; align-items: center; flex-grow: 1; overflow: hidden; }
.palette-icon { margin-right: 15px; font-size: 1.1rem; color: var(--text-muted); width: 24px; text-align: center; flex-shrink: 0; }
.palette-item.selected .palette-icon { color: var(--primary); }
.palette-title { font-weight: 500; font-size: 1rem; display: block; color: var(--text); }
.palette-breadcrumb { font-size: 0.8rem; opacity: 0.6; margin-top: 2px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav-icon { display: none; }
.palette-type { flex-shrink: 0; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: transparent; border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 20px; margin-left: 10px; }
.palette-group-header { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); padding: 12px 16px 6px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border-color); margin-bottom: 6px; margin-top: 10px; opacity: 0; transform: translateY(5px); animation: slideInHeader 0.3s forwards ease-out; }
.palette-group-header:first-child { margin-top: 0; }
@keyframes slideInHeader { to { opacity: 1; transform: translateY(0); } }
.palette-sub-item { padding-left: 55px !important; position: relative; }
.palette-sub-item::before { content: ''; position: absolute; left: 28px; top: -14px; bottom: 0; width: 2px; background: var(--border-color); }
.palette-sub-item::after { content: ''; position: absolute; left: 28px; top: 50%; width: 15px; height: 2px; background: var(--border-color); }
.palette-item-group .palette-sub-item:last-child::before { bottom: 50%; }
.palette-item-group .palette-sub-item:first-child::before { top: 0; }
.palette-sub-items-container { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease; opacity: 0; }
.palette-item-group.expanded .palette-sub-items-container { max-height: 500px; opacity: 1; }
.palette-context-menu { position: absolute; bottom: 50px; right: 16px; width: 220px; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0,0,0,0.3); border-radius: 12px; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.95); transition: all 0.2s ease; z-index: 99999; }
.palette-context-menu.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.context-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: 0.9rem; cursor: pointer; }
.context-item.selected, .context-item:hover { background: var(--bg); color: var(--primary); }
.context-item i { color: var(--text-muted); width: 16px; text-align: center; }
.context-item.selected i { color: var(--primary); }
.context-shortcut { margin-left: auto; font-size: 0.75rem; color: var(--text-muted); border: 1px solid var(--border-color); padding: 1px 5px; border-radius: 4px; }
.palette-footer { padding: 10px 16px; background: var(--card-bg); border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; border-bottom-left-radius: var(--border-radius-xl); border-bottom-right-radius: var(--border-radius-xl); position: relative; z-index: 10; }
.palette-footer-left { display: flex; gap: 15px; align-items: center; }
.palette-footer-left i { margin-right: 4px; }
.palette-footer-right { display: flex; align-items: center; gap: 6px; position: relative; min-width: 200px; justify-content: flex-end; }
.footer-hint-key { background: var(--bg); border: 1px solid var(--border-color); padding: 2px 6px; border-radius: 4px; font-family: monospace; font-size: 0.75rem; display: inline-block; }
#palette-footer-status-msg { opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: center; gap: 8px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none; }
#palette-footer-status-msg.active { opacity: 1; }
#palette-footer-hint { transition: opacity 0.3s ease; cursor: pointer; }
#palette-footer-hint.hidden { opacity: 0; visibility: hidden; }
.status-dot { height: 8px; width: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.green { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.status-dot.red { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

/* --- Responsive Layout Updates --- */
@media (max-width: 1100px) {
    /* Mobile Header overlap! */
    .section-padding { padding: 8rem 0 6rem; }
    
    .hero-text { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; }
    .pill-wrapper { margin: 0 auto 1.5rem auto !important; }
    
    .hero-grid, .about-grid, .footer-grid, .skills-grid { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 3rem !important; }
    .hero-image-wrapper { order: -1; width: 100% !important; max-width: 380px !important; height: auto !important; aspect-ratio: 1 / 1; margin: 0 auto 2rem auto !important; border-radius: var(--border-radius-xl) !important; }
    .hero-image { width: 100% !important; height: 100% !important; object-fit: cover !important; }
    .about-text, .footer-col { text-align: center !important; align-items: center !important; width: 100% !important; margin: 0 auto !important; }
    .hero-desc { margin-left: auto !important; margin-right: auto !important; }
    
    .action-buttons, .social-icons { justify-content: center !important; width: 100% !important; display: flex !important; flex-wrap: wrap !important; gap: 1rem !important; }
    .btn-primary, .btn-secondary, .btn-glow { padding: 12px 28px !important; font-size: 1rem !important; width: auto !important; min-width: 140px; }
    .lang-card, .skill-card { width: 100% !important; max-width: 600px !important; padding: 2rem !important; box-sizing: border-box !important; }
    .footer-grid { text-align: center !important; }
    .footer-col p, .footer-col a { margin-left: auto !important; margin-right: auto !important; }
    .edu-item { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; margin-bottom: 1.5rem !important; }
    .edu-item div:first-child { margin-right: 0 !important; margin-bottom: 0.5rem !important; }
    .hero-title { font-size: 3rem !important; line-height: 1.2 !important; }
    .tech-track { gap: 2rem; animation: scroll-loop 12s linear infinite; }
    .tech-slide { font-size: 1.3rem; } .tech-slide i { font-size: 1.6rem; }
}

@media (max-width: 768px) {
    /* Extra space up top so the title never touches the phone's notch */
    .section-padding { padding-top: 5.5rem; padding-bottom: 4rem; }
    .container { padding: 0 1.5rem; }
    
    /* --- MOBILE SWIPABLE NAVBAR --- */
    #bottom-nav-container { 
        transform: translateX(-50%); 
        bottom: 20px; 
        max-width: 88vw;
    }
    
    .nav-wrap {
        max-width: 100%;
        overflow: visible;
    }
    
    .nav {
        overflow: visible;
        position: relative;
    }
    
    /* Scrollable area for page links only */
    .nav-scroll-area {
        display: flex;
        position: relative;
        height: 100%;
        align-items: center;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        max-width: calc(88vw - 120px);
    }
    .nav-scroll-area::-webkit-scrollbar { display: none; }
    
    .nav-item.collapsible {
        scroll-snap-align: center;
        flex-shrink: 0;
        min-width: calc((88vw - 120px) / 3);
        height: 100%;
        text-align: center;
        justify-content: center;
        padding: 0 10px;
        font-size: 0.95rem; /* Match desktop font size */
    }
    
    /* Search stays outside scrollable area, always visible */
    .nav-item.search-item {
        flex-shrink: 0;
        width: 44px;
        height: 100%;
        min-width: 44px;
    }
    
    /* Theme toggle stays popped out */
    .theme-toggle-wrap {
        margin-left: 8px;
        width: 48px;
        height: 48px;
    }
    
    /* Collapse behavior: shrink to search-only perfect circle */
    #bottom-nav-container.is-collapsed .nav-wrap {
        padding: 6px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
        align-items: center;
    }
    
    #bottom-nav-container.is-collapsed .nav {
        gap: 0;
        height: 44px;
        width: 44px;
        justify-content: center;
        align-items: center;
    }
    
    #bottom-nav-container.is-collapsed .nav-scroll-area {
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-width 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    }
    
    #bottom-nav-container.is-collapsed .nav-item.search-item {
        width: 44px;
        min-width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .progress-wrap { display: none !important; } 
    
    /* Contact Form Mobile Fixes */
    .contact-form-section { padding: 2.5rem 1.5rem; margin: 0 0.5rem; }
    .conversational-form { font-size: 1.1rem; line-height: 2.6; }
    .inline-input, .custom-dropdown { min-width: 120px; width: auto; margin: 0 0.2rem; display: inline-block; }
    .form-footer { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
    
    /* Toast fixes for mobile */
    #toast-container { top: 15px; right: 15px; left: 15px; }
    .toast { min-width: auto; width: 100%; box-sizing: border-box; }
}

@media (max-width: 600px) {
    .context-shortcut { display: none !important; }
}

/* =========================================
   NEW PROJECT STYLES (MERGED) 
   ========================================= */

::-webkit-scrollbar { display: none; }
html, body { scrollbar-width: none; -ms-overflow-style: none; }
.palette-results { scrollbar-width: none; -ms-overflow-style: none; }

/* =========================================
   THEME VARIABLES (Default: Light Mode)
   ========================================= */
:root {
    
    --gap-bg: #f1f5f9;         
    --outer-border: #e2e8f0;
    --inner-border: #e2e8f0;
    --inner-border-hover: #cbd5e1;
    --arrow-color: #0f172a;
    
    --card-bg-gradient: linear-gradient(180deg, #ffffff 0%, #e2e8f0 85%);
    
    --outer-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    --light-hit-outer: rgba(15, 23, 42, 0.15); 
    --light-hit-inner: rgba(15, 23, 42, 0.25); 
    --hover-inset: rgba(0, 0, 0, 0.04);
    --lamp-glow: rgba(230, 213, 186, 0.6); 
}

/* =========================================
   DARK MODE OVERRIDES
   ========================================= */
[data-theme="dark"] {
    
    --gap-bg: #181818;
    --outer-border: #242424;
    --inner-border: #3D3D3D;
    --inner-border-hover: rgba(255, 255, 255, 0.2);
    --arrow-color: #ffffff;
    
    --card-bg-gradient: linear-gradient(180deg, #222222 0%, #141414 35%);
    
    --outer-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    --light-hit-outer: rgba(255, 255, 255, 0.8);
    --light-hit-inner: rgba(255, 255, 255, 0.9);
    --hover-inset: rgba(255, 255, 255, 0.15);
    --lamp-glow: rgba(230, 213, 186, 0.35);
}


/* =========================================
   TESTING TOGGLE BUTTON
   ========================================= */


/* =========================================
   1. LAYOUT FOR MULTIPLE CARDS
   ========================================= */
.cards-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    width: 100%;
}

/* =========================================
   2. OUTER CARD 
   ========================================= */
.project-card-outline {
    width: 60%; 
    background-color: var(--gap-bg); 
    padding: 10px; 
    border-radius: 32px;
    position: relative;
    box-shadow: var(--outer-shadow);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    perspective: 1500px; 
    cursor: pointer;     
}

.project-card-outline::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--outer-border);
    pointer-events: none;
    z-index: 20; 
    transition: box-shadow 0.4s ease;
}

.project-card-outline::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 12.5%; 
    width: 75%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--light-hit-outer) 50%, transparent 100%);
    z-index: 21; 
    border-radius: 50%; 
}

/* =========================================
   3. 3D FLIP CONTAINER (Used by UniSync)
   ========================================= */
.card-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-style: preserve-3d; 
}

.card-flipper.flipped {
    transform: rotateY(180deg);
}

/* =========================================
   4. INNER CARD
   ========================================= */
.project-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg-gradient);
    border-radius: 22px; 
    text-decoration: none;
    overflow: hidden; 
    position: relative;
    height: 100%;
    transition: background 0.4s ease;
    backface-visibility: hidden;         
    -webkit-backface-visibility: hidden; 
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px var(--inner-border);
    pointer-events: none;
    z-index: 20;
    transition: box-shadow 0.4s ease;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 25%; 
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--light-hit-inner) 50%, transparent 100%);
    z-index: 21; 
}

.project-card-outline:hover .project-card::after {
    box-shadow: inset 0 0 0 1px var(--inner-border-hover);
}

.card-front {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg); 
    display: flex;
    padding: 6px; 
}

.card-back iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px; 
    z-index: 10; 
    background: #f1f5f9; 
}

[data-theme="dark"] .card-back iframe {
    background: #181818;
}

/* =========================================
   5. EFFECTS, LIGHTING & CUSTOM CARDS
   ========================================= */
.warm-radial-glow {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(120% 120% at 50% -10%, var(--lamp-glow) 0%, rgba(230, 213, 186, 0.05) 50%, transparent 85%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card-outline:hover .warm-radial-glow {
    opacity: 1;
}

/* Java Airline Card */
.card-yellow {
    --lamp-glow: rgba(211, 174, 58, 0.6); 
}
[data-theme="dark"] .card-yellow {
    --lamp-glow: rgba(211, 174, 58, 0.25);
}

/* EV Management System Card (Requested Red) */
.card-red {
    --lamp-glow: rgba(237, 122, 129, 0.6); /* #ED7A81 */
}
[data-theme="dark"] .card-red {
    --lamp-glow: rgba(173, 34, 16, 0.4); /* #AD2210 */
}

/* Employee Management System Card (Purplish Blue) */
.card-purple {
    --lamp-glow: rgba(228, 173, 204, 0.6); /* Soft Purplish Blue */
}
[data-theme="dark"] .card-purple {
    --lamp-glow: rgba(233, 79, 138, 0.4); /* Deep Purplish Blue */
}

/* =========================================
   6. TYPOGRAPHY
   ========================================= */
.projectcard-top {
    padding: 32px 32px 0 32px;
    position: relative;
    z-index: 10;
}

.projectcard-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-projectcard-title {
    color: var(--primary);
    font-family: 'Albert Sans', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin: 0;
    transition: color 0.4s ease;
}

.text-projectcard-description {
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    margin-top: 10px;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.text-projectcard-description-company {
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.4s ease;
}

/* =========================================
   7. THUMBNAIL ANIMATIONS (Default Card)
   ========================================= */
.thumbnail-wrapper {
    position: relative;
    width: 90%;
    margin: 32px auto 0 auto; 
    z-index: 5;
    border-radius: 12px 12px 0 0;
}

.project-thumbnail {
    width: 100%;
    display: block;
    margin-bottom: -5%;
    transform: translateY(5%); 
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card-outline:hover .project-thumbnail:not(.slide-img) {
    transform: translateY(0%); 
}

/* =========================================
   8. FIGMA-STYLE FLIP BUTTON
   ========================================= */
.figma-flip-btn {
    position: absolute;
    top: 38px; 
    right: 22px; 
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.card-front .figma-flip-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text-muted);
    right: 45px; 
    opacity: 0;  
}

.project-card-outline:hover .card-front .figma-flip-btn {
    right: 22px; 
    opacity: 1;  
}

.card-front .figma-flip-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.card-back .figma-flip-btn {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    color: #333333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-back .figma-flip-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.figma-flip-btn svg {
    transition: transform 0.4s ease;
}

.figma-flip-btn:hover svg {
    transform: rotate(90deg); 
}

[data-theme="dark"] .card-back .figma-flip-btn {
    background: #2C2C2C; 
    border: 1px solid #444444;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .card-back .figma-flip-btn:hover {
    background: #3a3a3a;
}

/* TOOLTIPS */
.figma-flip-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 130%; 
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: #ffffff; 
    color: #121212;      
    border: 1px solid #e5e5e5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.figma-flip-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0); 
}

[data-theme="dark"] .figma-flip-btn::after {
    background: #2C2C2C; 
    color: #ffffff;
    border: 1px solid #444444;
}

/* =========================================
   9. SLIDE-UP TERMINAL ANIMATION
   ========================================= */
.terminal-animation-wrapper {
    position: relative;
    width: 90%; 
    margin: 32px auto -5% auto; 
    border-radius: 12px 12px 0 0;
    z-index: 5; 
    aspect-ratio: 1280 / 955;
    display: block;
    overflow: hidden;
}

.slide-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 12px 12px 0 0; 
    
    transform: translateY(5%);
    /* EXACT match to Card 1's smooth, snappy animation */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.project-card-outline:not(.terminal-active):hover .slide-img {
    transform: translateY(0%);
}

.slide-term {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0; 
    
    transform: translateY(150%); 
    /* EXACT match to Card 1's smooth, snappy animation */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    z-index: 10;
}

/* ================= THE ACTIVE TRIGGER ================= */

.terminal-card.terminal-active .slide-img {
    /* Pushed way up to -200% so the bottom completely clears the visible area */
    transform: translateY(-200%) !important; 
}

.terminal-card.terminal-active .slide-term {
    transform: translateY(5%) !important; 
}

.terminal-card.terminal-active:hover .slide-term {
    transform: translateY(0%) !important; 
}
/* =========================================
   10. JAVA TERMINAL UI
   ========================================= */
.terminal-ui {
    width: 100%;
    height: 100%;
    border-radius: 12px 12px 0 0; 
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow: hidden; /* <--- THIS FIXES THE BOXY CORNERS */
}

[data-theme="dark"] .terminal-ui {
    background: #121212;
    border: 1px solid #333333;
}

.terminal-header {
    height: 36px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

[data-theme="dark"] .terminal-header {
    background: #1e1e1e;
    border-bottom: 1px solid #333333;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { 
    background: #ff5f56; 
    cursor: pointer; 
    transition: filter 0.2s ease;
}
.dot.red:hover { filter: brightness(0.85); }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.terminal-body {
    padding: 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    flex-grow: 1;
    overflow-y: auto; 
}

.terminal-body::-webkit-scrollbar { display: none; }
.terminal-body { -ms-overflow-style: none; scrollbar-width: none; }

[data-theme="dark"] .terminal-body {
    color: #e2e8f0;
}

.prompt-user {
    color: #16a34a; 
    font-weight: 600;
}
.prompt-dir {
    color: #0891b2; 
    font-weight: 600;
}
.prompt-char {
    color: #64748b;
    font-weight: 600;
    margin-right: 6px;
}

[data-theme="dark"] .prompt-user {
    color: #4ade80; 
}
[data-theme="dark"] .prompt-dir {
    color: #22d3ee; 
}
[data-theme="dark"] .prompt-char {
    color: #94a3b8;
}

/* Smooth Fade-In for Typewriter Prompt */
.fade-in-prompt {
    opacity: 0;
    animation: fadeInPrompt 0.4s ease-out forwards;
}

@keyframes fadeInPrompt {
    to { opacity: 1; }
}

/* Blinking Cursor Animation */
.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: #334155;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

[data-theme="dark"] .cursor-blink {
    background-color: #e2e8f0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* =========================================
   FULL SCREEN SKILL CARDS (About Page)
   ========================================= */
.pinned-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg);
}

.glass-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 5;
    background-color: rgba(0, 0, 0, 0.1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0;
}

[data-theme="dark"] .glass-overlay {
    background-color: rgba(255, 255, 255, 0.05);
}

.portfolio-text-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; z-index: 6; width: 100%; text-align: center; }
.cards-container { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; max-width: 800px; height: 400px; z-index: 10; perspective: 1000px; }
.skill-card-fs { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); border: 1px solid var(--outer-border); border-radius: 20px; padding: 48px; box-sizing: border-box; display: flex; flex-direction: column; gap: 24px; box-shadow: 0 40px 80px rgba(0,0,0,0.1); will-change: transform, opacity; transform: translateY(150vh); cursor: default; }
[data-theme="dark"] .skill-card-fs { background: #111111; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 80px rgba(0,0,0,0.8); }

.card-header-fs { display: flex; align-items: center; gap: 20px; }

.icon-box-fs { width: 64px; height: 64px; background: var(--primary); color: var(--bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; }
[data-theme="dark"] .icon-box-fs { background: #ffffff; color: #000; }

.card-title-fs { font-size: 2.2rem; font-weight: 600; margin: 0; letter-spacing: -0.02em; color: var(--primary); }
[data-theme="dark"] .card-title-fs { color: #fff; }

.card-desc-fs { color: var(--text-muted); font-size: 1.15rem; line-height: 1.6; margin: 0; max-width: 90%; }
[data-theme="dark"] .card-desc-fs { color: #a1a1aa; }

.tags-container-fs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }

.tag-fs { background: rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.08); color: var(--text); padding: 10px 20px; border-radius: 40px; font-size: 0.95rem; font-weight: 500; transition: all 0.3s ease; }
[data-theme="dark"] .tag-fs { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: #e2e8f0; }

@media (max-width: 768px) {
    .cards-container { width: 92%; height: auto; min-height: 480px; }
    .skill-card-fs { padding: 32px 24px; gap: 20px; }
    .card-header-fs { flex-direction: column; align-items: flex-start; gap: 16px; }
    .icon-box-fs { width: 50px; height: 50px; font-size: 1.4rem; border-radius: 12px; }
    .card-title-fs { font-size: 1.6rem; }
    .card-desc-fs { font-size: 1.05rem; max-width: 100%; }
    .tag-fs { font-size: 0.85rem; padding: 8px 14px; }
    .tags-container-fs { gap: 8px; }
}



/* =========================================
   FLICKERING FOOTER
   ========================================= */
.flickering-footer-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 0;
    background: transparent;
    border-top: 1px solid var(--border-color);
    border-image: linear-gradient(to right, transparent, var(--border-color) 15%, var(--border-color) 85%, transparent) 1;
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-top: 4rem;
    overflow: hidden;
    z-index: 1;
}

.footer-top-content {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .footer-top-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.footer-brand {
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
    font-size: 0.95rem;
}

.footer-compliance {
    display: flex;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.footer-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

@media (max-width: 768px) {
    .flickering-footer-wrapper {
        border-radius: 0;
        margin-top: 2rem;
    }
    .footer-brand {
        max-width: 100%;
        align-items: center;
        text-align: center;
    }
    .footer-logo-link {
        justify-content: center;
    }
    .footer-links-container {
        gap: 2.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }
    .footer-col {
        align-items: center;
    }
}

.flickering-grid-container {
    width: 100%;
    height: 10rem;
    position: relative;
    margin-top: 2rem;
    z-index: 0;
}

@media (min-width: 768px) {
    .flickering-grid-container {
        height: 12rem;
    }
}

/* Fades the canvas into the background color at the top */
.flickering-grid-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 35%);
    z-index: 10;
    pointer-events: none;
}

.flickering-grid-inner {
    position: absolute;
    inset: 0;
    margin: 0;
}

#flickering-canvas {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* =========================================
   ANIMATED LOGO CAROUSEL
   ========================================= */
.animated-carousel-section {
    width: 100%;
    padding: 5rem 0;
    max-width: 1200px;
    margin: 4rem auto 0;
}
.animated-carousel-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0 2rem;
}
.carousel-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    margin-left: 0.5rem;
    letter-spacing: -0.05em;
}
@media (min-width: 768px) {
    .carousel-title { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
    .carousel-title {
        font-size: 3rem;
        max-width: 36rem;
    }
    .animated-carousel-section {
        padding: 5rem 0;
    }
}
.carousel-viewport {
    width: 100%;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    width: max-content;
}
.carousel-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 5rem;
    padding: 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}
.logo-container:hover {
    background-color: var(--card-bg);
}
.logo-container img {
    width: auto;
    height: 2.5rem;
    object-fit: contain;
    filter: brightness(0);
}
[data-theme="dark"] .logo-container img {
    filter: invert(1);
}

/* Text Roll */
.text-roll {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em; /* spacing for space character */
}
.text-roll .word {
    display: inline-flex;
    white-space: nowrap;
}
.text-roll .char-wrap {
    display: inline-block;
    position: relative;
    perspective: 10000px;
    transform-style: preserve-3d;
}
.text-roll .char {
    display: inline-block;
    backface-visibility: hidden;
    transform-origin: 50% 25%;
    transform: rotateX(90deg);
    opacity: 0;
}
.text-roll.animated .char {
    animation: rollEnter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}
@keyframes rollEnter {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}

/* =========================================
   PROJECT CARD MOBILE LAYOUT FIXES
   ========================================= */
@media (max-width: 1024px) {
    .project-card-outline { width: 85%; }
}

@media (max-width: 768px) {
    .project-card-outline { width: 92%; }
    .terminal-body { padding: 12px; }
    .terminal-text { font-size: 0.8rem; line-height: 1.4; }
    .text-projectcard-title { font-size: 1.4rem; }
    .terminal-title { font-size: 0.75rem; }
}

:root {
    --cert-image-bg: var(--primary);
    --cert-btn-bg: var(--primary);
    --cert-btn-text: var(--card-bg);
    --cert-btn-hover: var(--accent);
    --cert-btn-disabled-bg: #e2e8f0;
    --cert-btn-disabled-text: var(--text-muted);
    
    --badge-bg-completed: #1F2937;
    --badge-bg-pending: #27272A;
    --badge-text: #ffffff;
    --badge-border: #0F172A;
    --badge-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    
    /* Mapping existing theme variables into the component namespace */
    --cert-card-bg: var(--card-bg);
    --cert-text: var(--text);
    --cert-text-muted: var(--text-muted);
}

[data-theme="dark"] {
    --cert-image-bg: var(--primary);
    --cert-btn-bg: var(--primary);
    --cert-btn-text: var(--bg);
    --cert-btn-hover: var(--accent);
    --cert-btn-disabled-bg: var(--border-color);
    --cert-btn-disabled-text: var(--text-muted);

    --badge-bg-completed: #ECFDF5;
    --badge-bg-pending: #F4F4F5;
    --badge-text: #18181b;
    --badge-border: #E4E4E7;
    --badge-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 4rem; 
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cert-image-wrapper {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--cert-image-bg);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: background-color 0.3s ease;
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.cert-info-card {
    background-color: var(--cert-card-bg);
    color: var(--cert-text);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    margin-top: -3rem; 
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.cert-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    color: var(--cert-text);
}

.cert-org { 
    color: var(--cert-text-muted); 
    font-size: 0.95rem; 
    font-weight: 500; 
    margin-bottom: 1.5rem; 
}

.cert-desc { 
    color: var(--cert-text-muted); 
    line-height: 1.7; 
    margin-bottom: 2rem; 
    font-size: 0.95rem;
}

.cert-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; 
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.cert-actions .btn-primary { 
    background-color: var(--cert-btn-bg); 
    color: var(--cert-btn-text);
}

.cert-actions .btn-primary:hover { 
    background-color: var(--cert-btn-hover);
    color: #ffffff;
    transform: scale(1.02);
}

.cert-actions .btn-disabled { 
    background-color: var(--cert-btn-disabled-bg); 
    color: var(--cert-btn-disabled-text); 
    cursor: not-allowed; 
}

.cert-actions .btn svg { width: 18px; height: 18px; }

.badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    background-color: var(--badge-bg-completed);
    color: var(--badge-text);
    border: 1px solid var(--badge-border);
    box-shadow: var(--badge-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge.pending {
    background-color: var(--badge-bg-pending);
}

.badge svg, .badge i { 
    width: 14px; 
    height: 14px;
    font-size: 14px;
}

/* Desktop Breakpoint */
@media (min-width: 900px) {
    .cert-item { 
        flex-direction: row; 
        justify-content: center;
    }
    
    .cert-image-wrapper {
        width: 400px;
        height: 480px; 
    }

    .cert-info-card {
        margin-top: 0;
        margin-left: -80px; 
        padding: 3rem;
        max-width: 680px; 
    }
}

.cert-image-wrapper img[src="site.svg"] {
    max-width: 65%; 
    max-height: 65%;
}

@media (max-width: 899px) {
    .cert-image-wrapper img {
        max-width: 80%;
        max-height: 80%;
        transform: translateY(-20px);
    }
    .cert-image-wrapper img[src="site.svg"] {
        max-width: 55%;
        max-height: 55%;
    }
}
