:root {
    --bg-dark: #07080b;
    --bg-card: #0d0f15;
    --bg-card-hover: #131722;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-highlight: rgba(99, 102, 241, 0.4);
    --primary-color: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.2);
    --accent-cyan: #06b6d4;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

section[id], #devcoreauth-card, #devcoreauth-details {
    scroll-margin-top: 6.5rem;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* NAVBAR */
.navbar {
    background-color: rgba(7, 8, 11, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-muted) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
    color: var(--text-main) !important;
    transform: translateY(-1px);
}

.btn-contact-nav {
    border: 1px solid var(--border-color);
    padding: 0.4rem 1.1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.btn-contact-nav:hover {
    border-color: var(--primary-color);
    background: var(--primary-glow);
    color: #fff !important;
}

/* HERO SECTION */
.hero-section {
    padding: 160px 0 90px;
    position: relative;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #10b981;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-glow { animation: pulseGlow 2s infinite; }

.hero-title {
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ANIMATIONS & SCROLL REVEAL */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-slide-up-delayed { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; opacity: 0; }
.animate-slide-up-delayed-2 { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; opacity: 0; }
.animate-scale-in { animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; opacity: 0; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* BUTTONS */
.btn-primary-custom {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px var(--primary-glow);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background-color: #4f46e5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
    background: var(--primary-glow);
    transform: translateY(-3px);
}

/* TERMINAL CARD */
.code-terminal {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.code-terminal:hover {
    border-color: var(--border-highlight);
    transform: translateY(-4px);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
    margin-left: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-run {
    margin-left: auto;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.7rem;
    padding: 2px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-run:hover {
    background: var(--primary-color);
    color: #fff;
}

.terminal-body {
    padding: 24px;
    font-size: 0.85rem;
    line-height: 1.6;
    min-height: 180px;
}

.code-keyword { color: #f43f5e; }
.code-key { color: #38bdf8; }
.code-function { color: #fbbf24; }
.code-string { color: #a3e635; }

/* SECTIONS */
.section-tag {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-heading {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* CARDS & HOVER EFFECTS */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-glow);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
}

.glass-card:hover .card-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* STATS */
.stats-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
}

.stats-heading > div { max-width: 740px; }
.stats-heading .text-secondary { font-size: 0.95rem; line-height: 1.65; }

.stats-product-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 0 0 auto;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-highlight);
    border-radius: 10px;
    background: var(--primary-glow);
    color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.stats-product-link:hover { gap: 0.8rem; background: rgba(99, 102, 241, 0.2); color: #fff; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
    gap: 1rem;
}

.metric-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 215px;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: 1.35rem 1.45rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--bg-card), rgba(17, 20, 31, 0.92));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.metric-card::after {
    position: absolute;
    z-index: -1;
    top: -55px;
    right: -45px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.17), transparent 70%);
    content: "";
    transition: transform 0.35s ease;
}

.metric-card:hover { transform: translateY(-5px); border-color: var(--border-highlight); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22); }
.metric-card:hover::after { transform: scale(1.3); }

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 11px;
    background: rgba(99, 102, 241, 0.11);
    color: #a5b4fc;
    font-size: 1rem;
}

.metric-value {
    display: block;
    margin-bottom: 0.25rem;
    background: linear-gradient(110deg, #c4b5fd, #67e8f9);
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 1.15;
    white-space: nowrap;
}

.metric-label { color: var(--text-main); font-size: 0.88rem; font-weight: 700; }
.metric-note { margin-top: 0.3rem; color: var(--text-muted); font-size: 0.75rem; }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--primary-glow);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.glass-card:hover .stat-icon {
    transform: scale(1.1) translateY(-3px);
}

/* STACK BOX */
.stack-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.stack-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.15);
}

/* PROJECTS */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    border-color: var(--border-highlight);
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.product-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(145deg, #171a29 0%, #10131d 48%, #0d0f15 100%);
    border-color: rgba(99, 102, 241, 0.34);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.product-card > div:first-child {
    padding-bottom: 1.5rem;
}

.product-card .project-header {
    gap: 0.9rem;
    align-items: flex-start;
}

.product-card .project-header .badge-custom {
    max-width: 100%;
    white-space: normal;
    line-height: 1.45;
}

.product-specs {
    display: grid;
    gap: 0.65rem;
}

.product-specs > div {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #c5cad5;
    font-size: 0.88rem;
    line-height: 1.5;
}

.product-specs i {
    color: #34d399;
    margin-top: 0.18rem;
    flex: 0 0 auto;
}

.product-specs strong {
    color: var(--text-main);
}

.product-order-note {
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.05);
    color: #b8c7d5;
    line-height: 1.5;
}

.product-order-note i {
    color: var(--accent-cyan);
}

.product-card .tag-item {
    background: rgba(255, 255, 255, 0.035);
}

.product-card .border-top {
    border-color: rgba(255, 255, 255, 0.09) !important;
}

.product-details-modal {
    overflow: hidden;
    color: var(--text-main);
    background: linear-gradient(150deg, #151827, #0d0f15 70%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.product-details-modal .modal-header,
.product-details-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
}

.product-details-modal .modal-body {
    padding: 1.5rem;
}

.service-intro { max-width: 720px; }

.service-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(20, 23, 36, 0.96), rgba(12, 14, 20, 0.98));
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, transparent, #818cf8, #22d3ee, transparent);
    transform: scaleX(0.25);
    opacity: 0.5;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(129, 140, 248, 0.46);
    box-shadow: 0 24px 55px rgba(13, 15, 30, 0.55);
}

.service-card:hover::before { transform: scaleX(1); opacity: 1; }

.service-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    font-size: 1.45rem;
    animation: iconFloat 4.5s ease-in-out infinite;
}

.col-lg-4:nth-child(2) .service-icon { animation-delay: -1.5s; }
.col-lg-4:nth-child(3) .service-icon { animation-delay: -3s; }
.service-icon-purple { color: #a5b4fc; background: rgba(99, 102, 241, 0.13); }
.service-icon-cyan { color: #67e8f9; background: rgba(6, 182, 212, 0.12); }
.service-icon-green { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); }

.service-kicker {
    margin-bottom: 0.55rem;
    color: #9ca3af;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 750;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #aeb5c3;
    font-size: 0.93rem;
    line-height: 1.7;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1.35rem;
}

.service-tags span {
    padding: 0.32rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: #aeb5c3;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
}

.service-icon-orange { color: #fdba74; background: rgba(249, 115, 22, 0.12); }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: auto;
    color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.service-link:hover { gap: 0.8rem; color: #fff; }

.cookie-banner {
    position: fixed;
    z-index: 1080;
    right: clamp(1rem, 3vw, 2.5rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(760px, calc(100% - 2rem));
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(129, 140, 248, 0.28);
    border-radius: 18px;
    background: rgba(15, 18, 28, 0.97);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    color: #f3f4f6;
    backdrop-filter: blur(18px);
    animation: cookieRise 0.35s ease-out both;
}

.cookie-banner[hidden] { display: none; }
.cookie-copy { display: flex; align-items: flex-start; gap: 0.8rem; }
.cookie-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: rgba(99, 102, 241, 0.16); color: #a5b4fc; font-size: 1.1rem; }
.cookie-copy h2 { margin: 0 0 0.3rem; font-size: 0.9rem; font-weight: 750; }
.cookie-copy p { max-width: 430px; margin: 0; color: #aeb5c3; font-size: 0.76rem; line-height: 1.55; }
.cookie-actions { display: flex; flex: 0 0 auto; gap: 0.55rem; }
.cookie-button { padding: 0.58rem 0.75rem; border: 1px solid transparent; border-radius: 9px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; transition: transform 0.2s ease, background 0.2s ease; }
.cookie-button:hover { transform: translateY(-1px); }
.cookie-button-primary { background: #6366f1; color: #fff; }
.cookie-button-primary:hover { background: #4f46e5; }
.cookie-button-secondary { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: #d1d5db; }
.cookie-button-secondary:hover { background: rgba(255, 255, 255, 0.09); }
@keyframes cookieRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }


.footer {
    position: relative;
    margin-top: 2rem;
    padding: 3.75rem 0 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(145deg, #121722, #0c1017 58%, #151a23);
}

.footer::before {
    position: absolute;
    top: -1px;
    left: max(5%, calc((100% - 1120px) / 2));
    width: 125px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, #8a9baa, rgba(138, 155, 170, 0.08));
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) minmax(140px, 0.7fr) minmax(230px, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    padding-bottom: 2.3rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #f3f4f6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.footer-logo img { border: 1px solid rgba(129, 140, 248, 0.4); }

.footer-logo small {
    display: block;
    margin-top: 0.2rem;
    color: #7e8798;
    font-size: 0.57rem;
    font-weight: 500;
    letter-spacing: 0.13em;
}

.footer-brand p {
    max-width: 390px;
    margin: 1.1rem 0 0;
    color: #929aaa;
    font-size: 0.9rem;
    line-height: 1.75;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.72rem;
}

.footer-column h2 {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 0.3rem;
    color: #e5e7eb;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-column h2::after { width: 26px; height: 2px; border-radius: 2px; background: #8292a1; content: ""; }

.footer-column > a {
    color: #929aaa;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column > a:hover { color: #c7d2fe; transform: translateX(3px); }
.footer-contact > a:first-of-type { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-contact > a:first-of-type i { color: #818cf8; }

.footer-column .footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.3rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.08);
    color: #d5dde5;
}

.footer-column .footer-cta:hover { border-color: rgba(148, 163, 184, 0.36); background: rgba(148, 163, 184, 0.14); color: #fff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    color: #717a8a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
}

.footer-bottom a { color: #717a8a; text-decoration: none; transition: color 0.2s ease; }
.footer-bottom a:hover { color: #c7d2fe; }
.footer-bottom a i { margin-right: 0.3rem; }

.footer-bottom-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.footer-ssl {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem;
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: #34d399;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.details-panel {
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.details-panel h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.85rem;
    font-size: 0.98rem;
    font-weight: 700;
}

.details-panel h3 i {
    color: #8b8ff8;
}

.details-panel ul {
    margin: 0;
    padding-left: 1.15rem;
    color: #b8becb;
    font-size: 0.86rem;
    line-height: 1.6;
}

.details-panel li + li {
    margin-top: 0.45rem;
}

.details-panel code {
    color: #a5b4fc;
    white-space: normal;
    overflow-wrap: anywhere;
}

.details-limit {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.07);
    color: #c7b99a;
    font-size: 0.85rem;
    line-height: 1.5;
}

.details-limit i {
    color: #fbbf24;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.badge-custom {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.25);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
}

.tag-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tag-item:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
}

.btn-link-custom {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.2s ease;
}

.btn-link-custom:hover {
    gap: 14px;
    color: #818cf8;
}

/* CONTACT BOX & SLIDE DOWN FORM */
.contact-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, #10131c 100%);
    border: 1px solid var(--border-highlight);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.contact-form-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease-in-out;
}

.contact-form-container.active {
    max-height: 800px;
    opacity: 1;
}

.custom-input {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.custom-input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 0 15px var(--primary-glow);
}

.hover-white:hover { color: #ffffff !important; }

/* Easter Egg Rainbow Animation */
@keyframes rainbowGlow {
    0% { filter: hue-rotate(0deg); background-color: #07080b; }
    25% { background-color: #1a0b2e; }
    50% { background-color: #0b1a2e; }
    75% { background-color: #0b2e1a; }
    100% { filter: hue-rotate(360deg); background-color: #07080b; }
}

body.rainbow-mode {
    animation: rainbowGlow 10s ease infinite;
}

/* Efekt kosmicznego tła z gwiaździstym niebem (Space / Starfield) */
.space-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #0f172a 0%, #07080b 100%);
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: twinkle linear infinite, starDrift linear infinite;
}

.shooting-star {
    position: absolute;
    width: clamp(100px, 15vw, 180px);
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.18), rgba(226, 232, 255, 0.9));
    box-shadow: 0 0 8px rgba(165, 180, 252, 0.38);
    transform: rotate(34deg);
    transform-origin: right center;
    animation: meteorFlight 1.45s ease-out forwards;
}

.shooting-star::after {
    position: absolute;
    top: 50%;
    right: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #f1f5ff;
    box-shadow: 0 0 9px 2px rgba(199, 210, 254, 0.6);
    content: "";
    transform: translateY(-50%);
}

@keyframes meteorFlight {
    0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(34deg) scaleX(0.35); }
    12% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(190px, 150px, 0) rotate(34deg) scaleX(1.15); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px rgba(255, 255, 255, 0.8); }
}

@keyframes starDrift {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100vh); }
}

/* RESPONSIVE FINE-TUNING */
@media (max-width: 1199.98px) {
    .navbar { padding: 0.72rem 0; }
    .navbar-collapse { padding: 0.85rem 0 0.25rem; }
    .navbar-nav { align-items: stretch !important; gap: 0.2rem !important; }
    .navbar-nav .nav-link { padding: 0.6rem 0.35rem; }
}

@media (max-width: 991.98px) {
    .hero-section { padding: 120px 0 70px; }
    .hero-title { font-size: 2.5rem; }
    .hero-section .row { row-gap: 2rem !important; }
    .code-terminal { max-width: 720px; margin-inline: auto; }
    .service-intro { margin-bottom: 2rem !important; }
}

@media (max-width: 767.98px) {
    .section-heading { font-size: clamp(1.65rem, 6vw, 2.15rem); }
    .project-card { padding: 1.5rem; }
    .details-grid { grid-template-columns: 1fr; }
    .stats-heading { align-items: flex-start; flex-direction: column; }
    .cookie-banner { right: 1rem; bottom: 1rem; width: calc(100% - 2rem); align-items: stretch; flex-direction: column; gap: 1rem; }
    .cookie-actions { justify-content: flex-end; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 2rem; }
    .hero-section { padding-top: 112px; }
    .hero-subtitle { font-size: 1rem; }
    .glass-card, .project-card, .contact-box { padding: 24px; }
    .product-card { padding: 20px; }
    .product-card .project-header { align-items: flex-start; }
    .product-card .d-flex.justify-content-between.align-items-center.flex-wrap {
        align-items: stretch !important;
    }
    .buy-devcoreauth-btn {
        width: 100%;
        text-align: center;
    }
    .details-grid { grid-template-columns: 1fr; }
    .product-details-modal .modal-header,
    .product-details-modal .modal-footer,
    .product-details-modal .modal-body { padding: 1rem; }
    .footer { padding-top: 2.5rem; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
    .cookie-banner { right: 0.75rem; bottom: 0.75rem; width: calc(100% - 1.5rem); gap: 0.9rem; padding: 0.9rem; }
    .cookie-copy { gap: 0.65rem; }
    .cookie-copy h2 { font-size: 0.83rem; }
    .cookie-copy p { font-size: 0.72rem; }
    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-button { padding: 0.58rem 0.45rem; font-size: 0.68rem; white-space: normal; }
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .footer-bottom-meta { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
    .product-card .project-header { flex-wrap: wrap; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Custom admin confirmation and feedback UI */
.email-notification-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: rgba(16, 21, 33, .86);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 13px;
}
.email-notification-copy { display: flex; align-items: center; gap: 12px; }
.email-notification-copy strong { display: block; color: #e8ebf4; font-size: 13px; font-weight: 600; }
.email-notification-copy small { display: block; margin-top: 4px; color: #929bad; font-size: 11px; line-height: 1.5; }
.email-notification-icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: #75dfff;
    background: rgba(8, 189, 240, .1);
    border: 1px solid rgba(8, 189, 240, .16);
    border-radius: 11px;
}
.email-notification-setting .form-check-input { width: 2.5em; height: 1.35em; margin: 0; cursor: pointer; }
.email-notification-setting .form-check-input:checked { background-color: #14cba8; border-color: #14cba8; }
.email-notification-setting .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(20, 203, 168, .2); }
.admin-confirm-backdrop[hidden] { display: none !important; }
.admin-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 8, 18, .72);
    backdrop-filter: blur(8px);
    animation: adminOverlayIn .18s ease-out;
}
.admin-confirm-dialog {
    width: min(100%, 440px);
    padding: 30px;
    color: #eef0f8;
    background: linear-gradient(145deg, #171c2a, #10141f);
    border: 1px solid rgba(129, 140, 248, .25);
    border-radius: 20px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .48);
    animation: adminDialogIn .22s cubic-bezier(.2,.8,.2,1);
}
.admin-confirm-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-bottom: 20px;
    color: #b8b6ff;
    background: rgba(99, 102, 241, .15);
    border: 1px solid rgba(129, 140, 248, .2);
    border-radius: 15px;
    font-size: 21px;
}
.admin-confirm-eyebrow {
    margin: 0 0 7px;
    color: #9b9aff;
    font: 700 10px/1.4 var(--font-mono, monospace);
    letter-spacing: 1.5px;
}
.admin-confirm-dialog h2 {
    margin: 0;
    color: #f4f5fb;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}
.admin-confirm-message {
    margin: 12px 0 26px;
    color: #aeb4c5;
    font-size: 14px;
    line-height: 1.7;
}
.admin-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.admin-confirm-actions .btn { min-width: 105px; border-radius: 10px; }
.admin-toast-region {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 12100;
    display: grid;
    width: min(390px, calc(100vw - 32px));
    gap: 10px;
    pointer-events: none;
}
.admin-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 17px;
    color: #edf0f8;
    background: #171c2a;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .35);
    font-size: 13px;
    line-height: 1.55;
    pointer-events: auto;
    animation: adminToastIn .24s ease-out;
    transition: opacity .2s ease, transform .2s ease;
}
.admin-toast-leaving { opacity: 0; transform: translateY(8px); }
.admin-toast i { margin-top: 1px; font-size: 17px; }
.admin-toast-success { border-color: rgba(52, 211, 153, .35); }
.admin-toast-success i { color: #34d399; }
.admin-toast-error { border-color: rgba(248, 113, 113, .38); }
.admin-toast-error i { color: #f87171; }
.admin-toast-info i { color: #818cf8; }
@keyframes adminOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes adminDialogIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes adminToastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
    .email-notification-setting { align-items: flex-start; }
    .admin-confirm-dialog { padding: 24px 20px; }
    .admin-confirm-actions { flex-direction: column-reverse; }
    .admin-confirm-actions .btn { width: 100%; }
    .admin-toast-region { right: 16px; bottom: 16px; }
}
