
:root {
    --bg-dark: #0a0a0a;
    --accent: #00FFFF;
    --text-main: #ededed;
    --text-muted: #a1a1aa;
    --shopify-green: #96bf48;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* Tech Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Neon Glow Utility */
.neon-text {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

/* Vertical Marquee Styling */
.scroller-container {
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

/* Desktop Navigation Active State */
.nav-link.active {
    color: var(--accent);
    border-right: 2px solid var(--accent);
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.05));
}

/* Mobile Bottom Nav Styles */
.mobile-nav-container {
    width: max-content;
    max-width: 95%;
}

.mobile-nav-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 44px; /* Default width for inactive icons */
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    overflow: hidden;
}

.mobile-nav-item.active {
    width: auto; /* Expands to fit text */
    background-color: var(--accent);
    color: #000;
    padding-left: 1rem;
    padding-right: 1.25rem;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.mobile-nav-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-left: 0;
}

.mobile-nav-item.active .mobile-nav-text {
    max-width: 100px; /* Adjust as needed */
    opacity: 1;
    margin-left: 0.5rem;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* Moving Border Effect */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.moving-border-card {
    position: relative;
    background: #0f0f13;
    border-radius: 1rem; /* rounded-xl */
    padding: 2px; /* Border thickness */
    isolation: isolate;
    overflow: hidden;
}

.moving-border-card::before {
    content: "";
    position: absolute;
    inset: -100%;
    background: conic-gradient(from var(--angle), transparent 70%, #00FFFF, transparent);
    animation: spin 3s linear infinite;
    z-index: -1;
}

.moving-border-card::after {
    content: "";
    position: absolute;
    inset: 2px; /* Must match padding above */
    background: #0f0f13; /* Inner card bg */
    border-radius: 0.9rem;
    z-index: -1;
}

@keyframes spin {
    to {
        --angle: 360deg;
    }
}

/* Variation classes for border animation delays/speeds */
.anim-delay-1::before { animation-duration: 4s; }
.anim-delay-2::before { animation-duration: 2.5s; animation-direction: reverse; }
.anim-delay-3::before { animation-duration: 5s; }
.anim-delay-4::before { animation-duration: 3.5s; animation-direction: reverse; }

/* For browsers that don't support @property (Fallback) */
@supports not (background: paint(something)) {
    .moving-border-card::before {
        background: conic-gradient(transparent 70%, #00FFFF, transparent);
        animation: spin-fallback 3s linear infinite;
    }
}
@keyframes spin-fallback {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* New Project List Item Style */
.project-pill {
    background: #151515;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.project-pill:hover {
    border-color: #00FFFF;
    background: #1a1a1a;
    transform: translateX(5px);
}
.project-pill:hover .project-arrow {
    color: #00FFFF;
    transform: rotate(-45deg);
}

/* Rotating Badge Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-text {
    animation: rotate 10s linear infinite;
}

/* Modal Styles */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.open .modal-content {
    transform: scale(1);
}

/* Input Error State */
.input-error {
    border-color: #ef4444 !important;
}
.error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.input-error + .error-msg {
    display: block;
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background-color: #00FFFF;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* 3D Image Container */
.hero-image-container {
    perspective: 1000px;
}
.hero-image-inner {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Safe Area Padding for Bottom Nav */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

/* Code Particle Style */
.code-token {
    position: absolute;
    color: #00ffff;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.4rem;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}