@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== BASE RESET & TYPOGRAPHY ===== */
* {
    font-family: 'Space Grotesk', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: clamp(14px, 2.5vw, 18px);
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    position: relative;
    background: #000;
    color: #fff;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.2;
    font-weight: 600;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    line-height: 1.3;
    font-weight: 600;
}

p,
.body-text {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    line-height: 1.7;
    font-weight: 400;
}

.small-text {
    font-size: clamp(0.75rem, 2vw, 0.95rem);
    line-height: 1.5;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(0.8rem, 2.2vw, 1.1rem);
    font-weight: 500;
}

/* ===== RESPONSIVE GLASS MORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(12px, 3vw, 24px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== ENHANCED GLOW EFFECTS ===== */
.cyber-glow {
    box-shadow:
        0 0 clamp(20px, 4vw, 40px) rgba(0, 255, 255, 0.3),
        0 0 clamp(40px, 8vw, 80px) rgba(0, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.cyber-glow:hover {
    box-shadow:
        0 0 clamp(30px, 6vw, 60px) rgba(0, 255, 255, 0.5),
        0 0 clamp(60px, 12vw, 120px) rgba(0, 255, 255, 0.2),
        0 8px 40px rgba(0, 0, 0, 0.4);
}

.neon-text {
    text-shadow:
        0 0 5px rgba(0, 255, 255, 0.8),
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        0 0 40px rgba(0, 255, 255, 0.1);
    animation: neon-flicker 3s ease-in-out infinite alternate;
}

@keyframes neon-flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #00f5ff 0%, #ff00aa 35%, #00ff88 70%, #8a2be2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    25% {
        background-position: 100% 50%;
    }

    50% {
        background-position: 50% 0%;
    }

    75% {
        background-position: 50% 100%;
    }
}

/* ===== RESPONSIVE MATRIX BACKGROUND ===== */
.matrix-bg {
    background:
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
        linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: clamp(15px, 4vw, 30px) clamp(15px, 4vw, 30px);
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    animation: matrix-flow 25s linear infinite;
}

@keyframes matrix-flow {
    0% {
        background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    }

    100% {
        background-position: 30px 30px, 30px 45px, 45px 15px, 15px 30px;
    }
}

/* ===== ENHANCED SCAN LINE ===== */
.scan-line {
    position: relative;
    overflow: hidden;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 255, 255, 0.1) 25%,
            rgba(0, 255, 255, 0.6) 50%,
            rgba(0, 255, 255, 0.1) 75%,
            transparent 100%);
    animation: scan-sweep 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scan-sweep {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* ===== PULSE RING ENHANCEMENT ===== */
.pulse-ring {
    animation: pulse-ring 2.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.3);
        opacity: 1;
        filter: hue-rotate(0deg);
    }

    70% {
        transform: scale(2.5);
        opacity: 0.3;
        filter: hue-rotate(90deg);
    }

    100% {
        transform: scale(3);
        opacity: 0;
        filter: hue-rotate(180deg);
    }
}

/* ===== FLOATING PARTICLES OPTIMIZATION ===== */
.floating-particle {
    position: absolute;
    width: clamp(3px, 0.8vw, 6px);
    height: clamp(3px, 0.8vw, 6px);
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(0, 255, 255, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    animation: float-particle 12s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }

    50% {
        transform: translateY(50vh) translateX(-20px) scale(1.2);
    }

    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(30px) scale(0.8);
    }

    100% {
        transform: translateY(-10vh) translateX(clamp(60px, 15vw, 120px)) scale(0);
        opacity: 0;
    }
}

/* ===== CARD HOVER EFFECTS ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.card-hover:hover {
    transform: translateY(clamp(-6px, -1.5vw, -12px)) rotateX(5deg) scale(1.02);
    box-shadow:
        0 clamp(20px, 5vw, 40px) clamp(40px, 10vw, 80px) rgba(0, 255, 255, 0.2),
        0 0 clamp(30px, 7vw, 60px) rgba(0, 255, 255, 0.1);
}

/* ===== VERIFICATION STATUS ===== */
.verification-status {
    position: relative;
    border-radius: clamp(12px, 3vw, 20px);
}

.verification-status::before {
    content: '';
    position: absolute;
    inset: -3px;
    padding: 3px;
    background: linear-gradient(45deg, #00f5ff, #ff00aa, #00ff88, #8a2be2);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    animation: border-rotation 6s linear infinite;
}

@keyframes border-rotation {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.02);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ===== VERIFICATION BADGE ===== */
.verification-badge {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    padding: clamp(0.5rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
    border-radius: clamp(8px, 2vw, 16px);
    font-size: clamp(0.8rem, 2.2vw, 1.1rem);
    font-weight: 600;
    animation: badge-pulse 3s ease-in-out infinite alternate;
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

@keyframes badge-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
        transform: scale(1.05);
    }
}

/* ===== DID CODE DISPLAY ===== */
.did-code {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #1a1a2e);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: clamp(8px, 2vw, 16px);
    padding: clamp(1rem, 3vw, 2rem);
    position: relative;
    overflow: hidden;
}

.did-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00f5ff, transparent);
    animation: code-scan 4s linear infinite;
}

@keyframes code-scan {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.did-code code {
    word-break: break-all;
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ===== RESPONSIVE LAYOUT SYSTEM ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

.grid-responsive {
    display: grid;
    gap: clamp(1rem, 4vw, 3rem);
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== FORM ENHANCEMENTS ===== */
input[type="text"],
input[type="email"],
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: clamp(8px, 2vw, 16px);
    padding: clamp(0.75rem, 3vw, 1.5rem);
    color: #fff;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #00f5ff;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

button {
    padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
    border-radius: clamp(8px, 2vw, 16px);
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

button:hover {
    transform: translateY(-2px) scale(1.02);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile Phones (320px - 576px) */
@media (max-width: 575.98px) {
    html {
        font-size: 14px;
    }

    .glass {
        backdrop-filter: blur(15px);
        padding: 1rem;
        margin: 0.5rem 0;
        border-radius: 12px;
    }

    .card-hover:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .floating-particle {
        display: none;
        /* Performance optimization */
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Large Mobile (576px - 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        max-width: 540px;
        padding: 0 1.5rem;
    }
}

/* Tablets (768px - 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
        padding: 0 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    html {
        font-size: 16px;
    }
}

/* Ultra Wide (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    html {
        font-size: 18px;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 600px) {
    .glass {
        padding: clamp(0.5rem, 2vw, 1rem);
    }

    h1 {
        font-size: clamp(1.5rem, 4vh, 2.5rem);
    }

    h2 {
        font-size: clamp(1.25rem, 3vh, 2rem);
    }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .neon-text {
        text-shadow:
            0 0 3px rgba(0, 255, 255, 0.9),
            0 0 7px rgba(0, 255, 255, 0.6),
            0 0 12px rgba(0, 255, 255, 0.4);
    }

    .glass {
        backdrop-filter: blur(25px);
    }
}

/* ===== ACCESSIBILITY & MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-particle,
    .scan-line::after {
        display: none;
    }
}

/* ===== DARK/LIGHT MODE PREFERENCES ===== */
@media (prefers-color-scheme: light) {
    body {
        background: #f0f0f0;
        color: #000;
    }

    .glass {
        background: rgba(0, 0, 0, 0.05);
        border-color: rgba(0, 0, 0, 0.1);
    }
}

/* ===== UTILITY CLASSES ===== */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .hide-mobile {
        display: none;
    }

    .show-mobile {
        display: block;
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.flex {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

/* ===== LOADING STATES ===== */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00f5ff, #00ff88);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff00aa, #8a2be2);
}